First I'd like to thank you who helped. Now to be humbled. After redoing the scripts with the one below only 1 of my 3 transfers worked. Humm must be a timeing problem, I'll change the order they are started and wait until the next day and see what happens. Well I just got my 1st pair of glasses(at 54) and when I went in to edit cron I notices something funny. Instead of having 2>&1 I had 2>$1 at a 10 font the 2 signs looked simular. The reason it happened on 2 ftps on 2 different servers is the name transfer were the same so I just cut and pasted the error. Thanks for the help(eating crow) Mace --- Eddie Chen <[EMAIL PROTECTED]> wrote:
> 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 > ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ---------------------------------------------------------------------- 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
