CartMetrix - Do you know yours?

« Scintilla | Home | Automatically Delete Old Files »

3/17/2006

UploadTo Shell Script

Try this quick upload-to shell script to easily upload files to any server running an ssh daemon.

Create a new shell script called uploadto_hostname.sh with the following two lines:

#!/bin/bash
scp $@ username@host.domain.com:

Set username and host.domain.com. Create one for every frequently used server.

To use simply pass the name of the file(s) to be uploaded:

# uploadto_myserver.sh file1 file2 file3

If you are using secure key authentication, you won’t even need a password!

Popularity: 11%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It