Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

sftp script running through crontab

From: Hideki Machida <jap_e2k(at)hotmail.com>
Date: Wed May 21 2003 - 05:56:06 EDT
('binary' encoding is not supported, stored as-is)

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. Received on Wed May 21 13:39:47 2003

Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:59 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library