Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP from script and crontab

Status
Not open for further replies.

appi

IS-IT--Management
Joined
Mar 17, 2003
Messages
296
Location
CH
Hi all,

I know that this is a "small fish" but UI tried many solutions provided in different calls.
I need to ftp files to a remote host via crontab.
But I always got problems to start a script even from shell which connects me to the remote box.
There are two different constellations
HP/UX 10.20 as source and Linux SUSE 8.1 as destination
Linux SUSE 8.0 Server to SUSE 8.1
Here's my script by now

#!bin/sh
ftp -n <ipadress> <<EOF
user <user> <pass>
do something
quit
EOF

but it always asked for a password and can't connect from that script. As I understand former solutions
user <user> <password> will work, but at my boxes it won't.
Is it possible that the remote box is coonfigured to ask for pass anytime ?
There's running vsftp on that box.

regds
Uwe
 
Hi all,

I fixed it .... it was my fault using a incorrect password - but I expected not that error.

rgds
Uwe
 
Also, look for a manpage (or google for) &quot;netrc&quot; or &quot;.netrc&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top