Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 16:07:57 +1000
From:      "kyle pchost.com" <kyle@pchost.com.au>
To:        <freebsd-questions@freebsd.org>
Subject:   ftp from cron
Message-ID:  <00e801c1293e$75ad7e20$0100007f@localhost>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi I have been trying to cron to perform a ftp retrieve with the following line

30      *       *       *       *       /usr/bin/ftp -n -v < /www/ascetgroup/mildura/admin/getweather

but I get the following error.

------------->
Connected to ftp.theweather.com.au.
220 web-server Microsoft FTP Service (Version 4.0).
331 Password required for mildura.
230-Welcome to The Weather Company FTP Server.
230-
230-Should you need to contact us, please do so 
230-on +612 9955 7704 or via support@theweather.com.au
230-Samples of our data products can be downloaded from the samples directory.
230 User mildura logged in.
Local directory now /usr/local/share/apache/htdocs/ascetgroup/mildura/admin
Hash mark printing on (1024 bytes/hash mark).
200 Type set to I.
ftp: connect: Network dropped connection on reset
Passive mode on.
Interactive mode off.
221 Bye.
------------------------------>

yet if I try that same command from the commandline it works just fine

any help would be great.

thanks

kyle


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi I have been trying to cron to perform a ftp 
retrieve with the following line</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/ftp -n -v &lt; 
/www/ascetgroup/mildura/admin/getweather</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>but I get the following error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-------------&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Connected to <A 
href="ftp://ftp.theweather.com.au">ftp.theweather.com.au</A>.<BR>220 web-server 
Microsoft FTP Service (Version 4.0).<BR>331 Password required for 
mildura.<BR>230-Welcome to The Weather Company FTP Server.<BR>230-<BR>230-Should 
you need to contact us, please do so <BR>230-on +612 9955 7704 or via <A 
href="mailto:support@theweather.com.au">support@theweather.com.au</A><BR>230-Samples 
of our data products can be downloaded from the samples directory.<BR>230 User 
mildura logged in.<BR>Local directory now 
/usr/local/share/apache/htdocs/ascetgroup/mildura/admin<BR>Hash mark printing on 
(1024 bytes/hash mark).<BR>200 Type set to I.<BR>ftp: connect: Network dropped 
connection on reset<BR>Passive mode on.<BR>Interactive mode off.<BR>221 
Bye.</FONT></DIV>
<DIV><FONT face=Arial size=2>------------------------------&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>yet if I try that same command from the commandline 
it works just fine</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>any help would be great.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>kyle</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00e801c1293e$75ad7e20$0100007f>