Re: ftp not reading batch file correctly
From: UnixFan (gxy1997_at_yahoo.com.au)
Date: 12/01/03
- Previous message: UnixFan: "Re: ssh without password does not work"
- Next in thread: Nico Kadel-Garcia: "Re: ftp not reading batch file correctly"
- Reply: Nico Kadel-Garcia: "Re: ftp not reading batch file correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 30 Nov 2003 21:47:19 -0800
"Gerhard" <eldgjo@puk.ac.za> wrote in message news:<1070002743.814960@utl-lnx1>...
> I'm running a crontab that runs this file every 24H
> ----------------------------------------------------------
> #updating
> date
> ssh-agent /root/.ssh/.start
> cd /usr/local/update
> sftp -b /usr/local/update/updating.ftp user@server
>
> ----------------------------------------------------------
> # .start looks like this
> #! /bin/sh
> exec ssh-add
> ----------------------------------------------------------
> # updating.ftp looks like this
> cd /home/user/files
> get test.dat
> bye (or exit or quit)
> ----------------------------------------------------------
> I have two problems:
> 1: I can't kill the ssh agent with 'ssh-agent -k' and
> 2: sftp does not exit on the command bye in the batch.
>
> How do I fix this.
>
> All comments, sympathy or insults are welcome :-)
Have a look at http://wzce.tripod.com/, it may help.
- Previous message: UnixFan: "Re: ssh without password does not work"
- Next in thread: Nico Kadel-Garcia: "Re: ftp not reading batch file correctly"
- Reply: Nico Kadel-Garcia: "Re: ftp not reading batch file correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|