![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 08:30 AM |
| top output | new2ss | UNIX for Advanced & Expert Users | 4 | 03-11-2008 04:58 AM |
| awk output | useless79 | Shell Programming and Scripting | 3 | 09-03-2007 11:21 AM |
| ls -al output is -rw------T | Hayez | UNIX for Dummies Questions & Answers | 2 | 09-06-2005 03:14 AM |
| ps output | Shobhit | UNIX for Advanced & Expert Users | 2 | 03-10-2002 09:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
FTP Output
Hi all,
I've got the following piece of code which performs my FTP functionality. My issue is that despite the fact that both standard out and standard error out are defined, I still get a single line of output on the screen when I run the script. i.e. it may be: 530 Login incorrect. 553 /home/user/testing/test.sh: A file or directory in the path na me does not exist. How can I stop these single line messages from appearing? The code I'm currently using is below: <code> /usr/bin/ftp -ivn ${DEST_SERVER} << EOF > ${FTP_LOG} 2>&1 user ${DEST_USER} ${DEST_PWORD} copylocal put ${FILE} ${DEST_PATH}${tmpTrimFile} bye EOF </code> The script is written in KSH Cheers, Linden |
|
||||
|
Hi drunna,
Thanks very much much for your reply. Unfortunately your suggestion didn't help me - I still got the same response outputted to the screen. I also tried removing the -v flag from ftp, however, all that did was remove the number at the start of the output. e.g. "530 Login incorrect." became "Login incorrect." Can anyone shed some light on this for me? Cheers, Linden |
|
||||
|
This is quite bizarre (or atleast for me anyway). I tried the ftp piece of code in a script by itself and didn't see the output. (i.e. as I want it). Thus, it's not a machine thing.
I also made sure that the log file was being created correctly, and it was. I'm going in for further testing, but I'm quickly running out of ideas. Any other suggestions? Cheers, Linden OS: AIX |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|