Try this.. create a script

   #!/bin/ksh
   ftp -n -v -i xxx.xxx.xxx.xxx   <<EOF
   user  ftpuser userpass
   bin
   lcd /backup/dir
   prompt off
   mput   list2*
  quit
  EOF





                LJ Mace
             <[EMAIL PROTECTED]
             .com>                                                      To
                Sent by: Linux         [email protected]
             on 390 Port                                                cc
             <[EMAIL PROTECTED]
             IST.EDU>                                              Subject
                                       problem with  ftp and cron

                12/10/2007
             08:26 AM


             Please respond to
             Linux on 390 Port
             <[EMAIL PROTECTED]
                 IST.EDU>






I have a script (really 2) that ftps a file to another
server.
If I run the script manually(as a normal user so it
isn't permissions,I think) it processes fine.
I then put it into cron and it fails. Sometimes I get
nothing in my log and sometimes I get 'EPSV': command
not understood.
Here is my command and the file it executes.
command:

#!/bin/sh
ftp -n < /opt/mace/ftp_thedb.sh

file (ftp_thedb.sh )to execute:

open xx.xx.xx.xx
quote user ftpuser
quote pass ueserpass
binary
lcd /backup_dir
put lits2*
quit

What am I missing????????? It's driving me to
drink(thank goodness )
But it is a little crazy also.
This is moving a file from a z/linux server to a
windows box.
thanks
Mace




____________________________________________________________________________________

Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390





Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment
to it is privileged, confidential and protected from disclosure.  If the
reader of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the
sender immediately by replying to the message, and please delete
it from your system. Thank you.  NYSE Group, Inc.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to