![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for automatic deletion of old files | vivek_scv | Shell Programming and Scripting | 4 | 09-08-2007 10:57 PM |
| Automatic Log files to my E-mail. | adel8483 | SUN Solaris | 2 | 04-10-2007 01:10 AM |
| transfering files unix to pc | intern | UNIX for Dummies Questions & Answers | 8 | 05-30-2006 02:35 AM |
| Transfering files from one server to another. | Alan Bird | UNIX for Dummies Questions & Answers | 4 | 09-18-2003 01:24 PM |
| Transfering files | vbs | UNIX for Dummies Questions & Answers | 5 | 06-25-2002 08:24 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
automatic transfering of files using scp
I'm in the process of writing a shell script with copies files from one linux box to another using scp. I wish to run this through a cronjob so it cannot be interactive.
This is what I have so far. #!/bin/sh PASSWD='passswd' dateset=$( date | awk '{print $2 $3 $6}') for dates in $dateset; do dateset2=$dates done cd /home/user scp -r user@host:/home/user/$dateset2.db.gz . << END_SCRIPT quote PASS $PASSWD END_SCRIPT exit 0 it still asks me for the password though. It works if I use ftp (but I'd rather use something more secure) Might anyone be able to offer suggestions? |
| Forum Sponsor | ||
|
|