![]() |
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 |
| Hi How to redirect the output of exec | nathgopi214 | Shell Programming and Scripting | 2 | 03-23-2008 08:10 AM |
| Redirect output | mpang_ | Shell Programming and Scripting | 1 | 08-15-2007 08:57 AM |
| Redirect output to a file | jimmyc | UNIX for Dummies Questions & Answers | 11 | 01-31-2007 11:34 AM |
| Redirect Output In Variable | ZINGARO | UNIX for Dummies Questions & Answers | 1 | 08-02-2006 06:56 AM |
| redirect output to file? | slackware | Shell Programming and Scripting | 1 | 09-12-2003 02:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
redirect output of FTP
Hi,
I call the FTP command from within a script. The call to FTP looks like this : ftp -n -i -v < $com >> "$logfile" Where $com is a commandfile and I want the output to be redirected to $logfile. If I do this call at the prompt it works perfect. (replacing the variables by there name. If I run the script the FTP is done (like it should be) but the output does not appear in the logfile. In fact no output is written. Thanks for any advice! Best Regards, Kris |
|
||||
|
Kris,
Can you post the command file and also the exact syntax u r using on command line ? Let me know what is logged at present or nothing is logged. As I checked this command on Sun & HP on both this is working fine. Regards, ssk |
|
||||
stupid me...After a good night sleep and a fresh brain I found out that somewhere in the script the directory is switched and as such the logging is working fine. Only that part is put in another logfile (same name other directory)... as the logfile contains only a name and not a full path. Sorry I bothered you and thanks a lot for your help. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|