Ok Here i have display my correct format script. Always i use correct aligned scripts. When i paste this script , It changed to the normal. Sorry for your inconvenience.
Script:
-------
#!/bin/bash
ftp_user='user1'
ftp_crpt='pass'
for i in `cat hostfile`
do
echo $i
ftp -in << EOF
open $i
quote USER $ftp_user
quote PASS $ftp_crpt
binary
hash
put txt
quit
EOF
done
## "txt" is a file which i want to put into the another machine.
## "hostfile" has the machine's IP list
Last edited by hinetvenkat; 05-31-2005 at 10:27 PM.
|