![]() |
|
|
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. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FTP help
I need to connect to a remote FTP server and then in one of their sub directory look for files. I need to extract files depending on date comparison. if the dates are similar I get the files based on run_date or else if they are different I compare them and get all the files from load day onwards. The if then else statement is not working as an invalid command . Can somebody pls help. Its very urgent.
Is there any other way out. --------------------------------- HOST='' USER='' PASSWD='' ftp -in $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD load_date=20090401 run_date=20090404 if [ $diffrnce -eq 0 ] then get *.$RUN_DT.txt else ?????????????????? fi quit END_SCRIPT exit 0 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|