trying cron job to ftp file to another server
From: Robin (robin_at_witkopstaub.com)
Date: 10/12/04
- Next message: Andrew Schulman: "Re: KDE Menus - How the heck do they work? ...They don't!"
- Previous message: Paul Lutus: "Re: Server"
- Next in thread: Robin: "Re: trying cron job to ftp file to another server"
- Maybe reply: Robin: "Re: trying cron job to ftp file to another server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Oct 2004 12:08:05 -0700
I am trying to write a cron job that will put some daily files onto
our AS400. The cron job is having problems authenticates to the
AS400. The login information doesnt appear to be getting passed
right. All the commands work if I run them one by one from the
console.
Here is my cron job abd the results when you run it.
***************************
#!/bin/sh
#
cd /var/log
ftp -n 192.168.3.9
user ISBACKUP notape
binary
put mail1og.1
y
bye
**************************
[root@mail rrw]# cd /etc/cron.maillog/
[root@mail cron.maillog]# ./maillog
Connected to 192.168.3.9.
220-QTCP at AS400.
220 Connection will close if idle more than 5 minutes.
Remote system type is .
ftp>
- Next message: Andrew Schulman: "Re: KDE Menus - How the heck do they work? ...They don't!"
- Previous message: Paul Lutus: "Re: Server"
- Next in thread: Robin: "Re: trying cron job to ftp file to another server"
- Maybe reply: Robin: "Re: trying cron job to ftp file to another server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|