1834285 Members
2437 Online
110066 Solutions
New Discussion

ftp

 
A.G.M. Velthof
Valued Contributor

ftp

I've created a script to ftp files from a unix server to a windows ftp server.
Starting it by hand it works.
Starting it in a cronjob doesn't work. Just before the put command the log says 221

What can be the problem?
5 REPLIES 5
J. Bravo
Respected Contributor

Re: ftp

Hi:

221 is the code of Service Closing.

Could you attach your script, please?

Regards;

J. Bravo.
tkc
Esteemed Contributor

Re: ftp

have u refer to this document already?

http://docs.hp.com/en/5991-6480/ch05s02.html

A.G.M. Velthof
Valued Contributor

Re: ftp

Its friday today.......
just forgot to add a line with lcd to the directory with the files.

Thanks anyway
LucianoCarvalho
Respected Contributor

Re: ftp

Cron doesn't support scripts that try to display any output. How did you configure the line into contrab file for this script?

Tim Nelson
Honored Contributor

Re: ftp

Undirected output from scripts run in cron goes into the users email.