This may be way too obvious, but....
Check the environment variables to be sure your environments are similar.
Note that scripts run in cron do not run any sort of profile, so nothing is
set up by default; the work to build that environment is left up to you.
--
.~. Robert P. Nix Mayo Foundation
/V\ RO-OE-5-55 200 First Street SW
/( )\ 507-284-0844 Rochester, MN 55905
^^-^^ -----
"In theory, theory and practice are the same, but
in practice, theory and practice are different."
On 12/10/07 7:26 AM, "LJ Mace" <[EMAIL PROTECTED]> wrote:
> 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
----------------------------------------------------------------------
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