![]() |
|
|
|
|
|||||||
| 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 |
| Calling expect scripts from other expect scripts | seva | Shell Programming and Scripting | 0 | 04-03-2008 10:45 AM |
| scripts please | rrdore | SUN Solaris | 2 | 12-07-2006 01:35 AM |
| use of ssh in scripts | esham | Shell Programming and Scripting | 7 | 11-16-2005 07:27 AM |
| Help with GDL to SQL scripts | ch4r1e5 | Shell Programming and Scripting | 0 | 10-31-2005 01:51 PM |
| using su in scripts | uchachra | UNIX for Dummies Questions & Answers | 3 | 03-11-2002 09:24 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
FTP Scripts
HI All
Need a help in FTP script i need to ask the user to enter the source ftp server and password and target ftp server and password , once it has logged in to the source server it need to go to directory and ftp to the target server can anyone help me on this , Sample code is required Thanks a lot |
| Forum Sponsor | ||
|
|
|
|||
|
Just wanted to be clear ,
When i run the Shell , it has to Prompt the User for host server : echo "Please enter the host server:" read IP echo "Please enter the User id :" read user echo "Please enter the password :" read pass type = ''ascii'' $ftp open $IP quote USER $user quote PASS $pass $type This wont work can anyone modify this and let me know , Thanks |
|
|||
|
Hi
I tried to do that , can you please let me know Just explaining the scenario i am login to the Target server and asking the Source ftp server once it login just giving the directory name and get some files from source directory , is it possible , can you please give a sample code to fix this issue Thanks |
|
|||
|
Yes Thanks for the info :
But it is kind of critical in touching those files in my environment I will post my code here , can you please let me know what went wrong here : #!/bin/sh echo " Please Enter the FTP Server Address :" read FTP_SRVR echo "Please Enter the User id :" read FTP_USR echo "Please enter the FTP Password :" read FTP_PWD ifile="/home/app/ins/seven/rem/" ofile="/home/app/ins/six/ddf" ftp <<EOF open $FTP_SRVR user $FTP_USR pass $FTP_PWD ascii cd $ifile lcd "$ofile" mget *.* bye EOF |
|||
| Google The UNIX and Linux Forums |