![]() |
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 |
| shell script command | lg123 | UNIX and Linux Applications | 3 | 04-11-2008 04:35 AM |
| cd command is not working in my shell script | amitrajvarma | Shell Programming and Scripting | 3 | 10-03-2007 06:04 AM |
| how to use cd command in shell script | LAKSHMI NARAYAN | Shell Programming and Scripting | 3 | 09-09-2007 07:04 AM |
| vi command in shell script | bryan | UNIX for Dummies Questions & Answers | 2 | 05-23-2006 08:51 PM |
| Shell script command | dipanrc | Shell Programming and Scripting | 7 | 11-29-2005 11:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Here is the soln
The best ways is to use "sftp"
If you have "ssh-key generation between the client and host server then sftp is the best option. code : sftp $servername <<END_SCRIPT Your code END_SCRIPT If you know concept of key gen then use sftp. keygen establish a connection between 2 server by which u dont need userid and pwd for connection.. |
|
||||
|
Try this
user='user1' password='password1' IP='***.***.***.***' ftp -n -i -v $IP 22 <<-END_SCRIPT > LOG_file user $user $password status bin lcd <DESTINATION DIR> cd <REMOTE DIR> mget *.* bye END_SCRIPT Regards, Pankaj |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|