On Wed, 6 Mar 2002, vincent li wrote:
> it seems that it's not cron's problem, i check the > mail message and find the following message: > > >From root Thu Mar 7 13:35:01 2002 > Return-Path: <root@hostname> > Received: (from root@localhost) > by cn.iaspec.com (8.11.6/8.11.6) id > g275Z1C19040 > for root; Thu, 7 Mar 2002 13:35:01 +0800 > Date: Thu, 7 Mar 2002 13:35:01 +0800 > Message-Id: <[EMAIL PROTECTED]> > From: [EMAIL PROTECTED] (Cron Daemon) > To: [EMAIL PROTECTED] > Subject: Cron <root@hostname> scp localfile > remotehost:/backup > X-Cron-Env: <SHELL=/bin/sh> > X-Cron-Env: <HOME=/root> > X-Cron-Env: <PATH=/usr/bin:/bin> > X-Cron-Env: <LOGNAME=root> > > Executing ssh2 failed. Command:' ssh2 -x -a -o > clearallforwardings yes -o passwo > rdprompt %U@%H's password: -o nodelay yes -o > authenticationnotify yes remotehost -s sftp' System > error message: 'No such file or directory' > scp: warning: child process (ssh2) exited with code > 255. > > still, i can run script successfully at command line, > i doubt if it is relate to env problem? Try to use the -n option (redirecting stdin from /dev/null). Werner _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list