Hi again,

I am trying to set up an automatic FTP transfer each night.

I am using the .netrc config file and for testing the contents are (names
and addresses changed to protect the innocent):

machine 123.123.123.123 login loginname password mum macdef init
bin
prompt
cd /ps_in/pbcp/eaqr
cd /ps_in/pbcp/eavr
quit

I Call this from another little script (ftptransfer) using the line

**SNIP***

ftp 125.21.70.189 > $DATAAREA/log/logfile

**SNIP**


When I run this from the command prompt it all works fine and my log file is
written eg:

Connected to 123.123.123.123.
220 Microsoft FTP Service (Version 4.0).  #not my server so don't blame me
331 Password required for loginname.
230 User loginname logged in.
bin
200 Type set to I.
prompt
Interactive mode off.
cd /ps_in/pbcp/eaqr
250 CWD command successful.
cd /ps_in/pbcp/eavr
250 CWD command successful.
quit
221


Now, when I run this using a cron job:


my log file consists of


Interactive mode off.


Not quite the result I was expecting.


any ideas???


regards

Alister Waller


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to