![]() |
|
|
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 |
| sftp status check | fisa | HP-UX | 4 | 02-27-2008 07:18 PM |
| Script to check status of a PID | zeekblack | Shell Programming and Scripting | 14 | 10-03-2006 04:09 PM |
| check the status and send an email with status | isingh786 | Shell Programming and Scripting | 3 | 12-29-2005 07:22 PM |
| Ftp Status Check | acheepi | Shell Programming and Scripting | 4 | 09-08-2005 04:23 PM |
| Status check of Automated FTP | anijog | Shell Programming and Scripting | 5 | 03-04-2004 02:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Check FTP Status
To all,
I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same thing on the command line, I get all kinds of responses. I would like to capture the same responses in my script. Any suggestions? ------------------------------------------------------------------ Here is what it looks like in my script: ftp -n -i 123.123.123.123 <<EOF >test ascii close quit EOF Result: test is empty. ------------------------------------------------------------------ I tried this: echo open 123.123.123.123 >>rin echo ascii >>rin echo close >>rin echo quit >>rin ftp -n -i <rin >test Result: test is empty. ------------------------------------------------------------------ I typed the ftp command on the command line: ftp -n -i 123.123.123.123 Connected to 123.123.123.123. 220-NETIFTP1 IBM FTP CS V1R7 at 123.123.123.123, 18:08:57 on 2007-08-03. 220 Connection will close if idle for more than 5 minutes. ftp> open Already connected to 123.123.123.123, use close first. ftp> ascii c200 Representation type is Ascii NonPrint ftp> close 221 Quit command received. Goodbye. ftp> quit |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|