If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Redirect command confirmation

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-09, 15:28
BikerTeeCee BikerTeeCee is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
Redirect command confirmation

Hi there,

I am not a shell script programmer. The following is the situation, a little Unix Shell script takes care of setting up a filetransfer connection, FTP of a file, shutdown the connection en move the file to an other folder (Archive). The script is started unattended during the night.

There is no redirection of each performed line command acknowledgement line to a log file. In the morning I onle can see a moved to Archive file, but never a confirmation if the FTP was succesfull. What do I need to do to capter the line command confirmation in a log file?

Any tips for me?

Regards,
Ton
Reply With Quote
  #2 (permalink)  
Old 12-08-09, 17:36
kitaman kitaman is offline
Registered User
 
Join Date: Sep 2009
Location: Ontario
Posts: 526
add the -v option to the ftp command.

ftp -v host <input.commands
Reply With Quote
  #3 (permalink)  
Old 12-12-09, 16:11
BikerTeeCee BikerTeeCee is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
Thanks.

Ton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On