Re: Re: sftp script running through crontab

From: William Pechter (pechter_at_ureach.com)
Date: 05/22/03

  • Next message: Stephen Lawrence Jr.: "Re: & being parsed in command argument"
    Date: Thu, 22 May 2003 14:27:02 -0400
    To: "TooManyMirrors" <toomanymirrors@yahoo.com>, secureshell@securityfocus.com
    
    

    Looks like the error you get with an stty command in a .profile or .cshrc
    with a non-interactive login connection.

    --
    Bill Pechter
    Systems Administrator
    uReach Technologies
    732-335-5432 (Work)
    877-661-2126 (Fax)
    ---- On Wed, 21 May 2003, TooManyMirrors (toomanymirrors@yahoo.com) wrote:
    > I'm not entirely sure what the error is but most likely you're 
    > crontab's shell variables are not set correctly. Set you're SHELL, 
    > PATH, HOME, etc just to be sure. I'm sure someone else knows the real 
    > problem and solution, but this is just my suggestion :)
    > TooManyMirrors
    > On 2003.05.21 05:56, Hideki Machida wrote:
    > 
    > 
    > This is the script that I am using.
    > 
    > ---------------------------------------------------------
    > #!/bin/sh
    > 
    > DIR="/DIR"
    > LDIR="/LDIR"
    > LOG=aaa.gz
    > list="aaa.txt"
    > 
    > for i in `cat $list`
    > do
    > 
    > /usr/local/bin/sftp account@hostname <<EOF>/dev/null
    >            cd $i/$DIR
    >            lcd $i/$LDIR
    >            mput $LOG
    >            quit
    > EOF
    > 
    > done
    > -----------------------------------------------------------
    > 
    > The system is HP-UX.
    > 
    > Now the problem I am having is that when running this directly it
    > executes
    > without a problem, yet when this is executed though cron it comes with
    > the
    > following error.
    > 
    > $./script.sh
    > Warning: tcgetattr failed in ssh_rl_set_tty_modes_for_fd: fd 1: Not a
    > typewriter
    > 
    > If anybody can shed some light on this issue it would be of great help.
    > 
    > 
    

  • Next message: Stephen Lawrence Jr.: "Re: & being parsed in command argument"

    Relevant Pages