Re: ftp not reading batch file correctly

From: UnixFan (gxy1997_at_yahoo.com.au)
Date: 12/01/03

  • Next message: Steve Beaty: "MSSH: a generic Windows 95/98 ssh client"
    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.


  • Next message: Steve Beaty: "MSSH: a generic Windows 95/98 ssh client"

    Relevant Pages

    • Re: Is a large crontab file OK?
      ... > I don't know of a size problem with crontab. ... > cron will only read the file when you start the machine or exit ... Thank you for your suggestion Jeffrey. ... of a holidays file. ...
      (comp.unix.aix)
    • Re: crontab
      ... tzlast=`expr substr $TZ $sp 3` ... hour=`expr $tzmid - 120` ... You might try something like this within crontab... ...
      (AIX-L)
    • crontab, cannot create
      ... I can't create a crontab file. ... create a file and exit. ... This is not a SUSE problem, ... users of other distrbutions also have had the problem. ...
      (alt.os.linux.suse)
    • RE: Cron job questions
      ... [Dave Carrera] ... > Save exit ... I thought that putting an * in your crontab meant that your cronjob would ... To unsubscribe, ...
      (freebsd-questions)
    • Re: sequential cron jobs
      ... also allows to check exit status of cvsup. ... > A crontab is like a shell script, you can check the exit status more or ... > less like you would in a Bourne shell script. ... I can schedule and also run at anytime. ...
      (comp.unix.bsd.freebsd.misc)

  • Quantcast