[cod] Something totally different

Tom Rivers tom at impact-crater.com
Sat Dec 1 15:23:28 EST 2007


On Sat, 2007-12-01 at 20:53 +0100, Sander wrote:
> Hello Tom,
> 
> I'm using ssh to transfer files, but not sure if that's what you mean 
> with scp :)
> I need FTP in the end, cause we probably have to give acces to servers 
> (this is for a multigaming clan).
> Almost uploaded cod through secureshellclient, but ftp is just easier 
> cause ssh tends to timeout after several files here.
> 
> / Sander
> 

Sander,

If you're using ssh to transfer files, then I'm surprised you're not
using scp.  For example:

scp ./sample_file.tgz tom at myserver.com:

The above command takes the local file and send it to the home directory
of the target server using "tom" as the user to login.  You can adjust
both the source and target paths to point to wherever you want like
this:

scp /home/tom/sample_file.tgz tom at myserver.com:/usr/local/games/cod4
scp tom at myserver.com:/usr/local/games/cod4/log.gz ./

You can use any account registered on the target system to login but
proper permissions are required of course.

If you're worried about making it easy for non-technical Windows people
to upload things to the server, you can always provide an easy way to
transfer files using PuTTY's pscp.exe utility:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

To make it easy to distribute to Windows users, here's something to try:

(1) Create a directory on your own windows system in the main drive's
root like C:\upload as the staging area for anything to be sent to the
server.

(2) Create another directory like C:\scripts for holding the script that
will do the transfer.

(3) Put a copy of pscp.exe in the C:\scripts folder.

(4) Edit a file called upload.bat in the C:\scripts folder and put a
command in it like this:

c:\scripts\pscp c:\upload\* user at yourserver.com:/path/to/dir

(5) Zip it all up and upload the resulting archive to a web server for
easy distribution.

All the person will need to do is unzip the archive on their system and
create a shortcut to the upload.bat file to be ready to send things.  In
fact, if you know the target OS version, you can create a shortcut on
your own system and zip it up along with the other files.  Just be sure
you put it in the right folder.  For example, on XP you should put it in
the C:\Documents and Settings\All Users\Desktop folder so every user
will have it displayed.  Uploading a file to the server is then just as
easy as dropping it in the folder, clicking the icon to execute the
script, and providing the proper password.


> Almost uploaded cod through secureshellclient, but ftp is just easier 
> cause ssh tends to timeout after several files here.
> 
> / Sander
> 

I'm wondering whether scp might fare better.  Anyway, I just figured I'd give you my $0.02 on the off chance it might help. 


Tom




More information about the Cod mailing list