![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for automatic deletion of old files | vivek_scv | Shell Programming and Scripting | 4 | 09-09-2007 01:57 AM |
| Automatic Log files to my E-mail. | adel8483 | SUN Solaris | 2 | 04-10-2007 04:10 AM |
| transfering files unix to pc | intern | UNIX for Dummies Questions & Answers | 8 | 05-30-2006 05:35 AM |
| Transfering files from one server to another. | Alan Bird | UNIX for Dummies Questions & Answers | 4 | 09-18-2003 04:24 PM |
| Transfering files | vbs | UNIX for Dummies Questions & Answers | 5 | 06-25-2002 11:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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? |
| Sponsored Links | ||
|
|