From: <al....@ac...> - 2005-07-01 22:15:20
|
Austin, Thank you for the feedback. By setting the path I was able to get the script working.=20 Al =20 -----Original Message----- From: Austin Schutz [mailto:te...@of...]=20 Sent: Monday, June 27, 2005 4:47 PM To: Pashazadeh, Al Cc: exp...@li... Subject: Re: [Expectperl-discuss] Croning Expect Script On Mon, Jun 27, 2005 at 01:41:39PM -0500, al....@ac... wrote: >=20 > Hello everyone, >=20 > Using Perl and Expect I have written a script to SFTP a file from over > 20 remote servers. When I run the script from the command line it=20 > works fine. I need to cron this script so that it can be run a couple > of times each day. For some unknown reason when the cron daemon=20 > starts up my script the spawned sftp command does not get the remote=20 > file and the following error message is logged to the standard error=20 > by the cron > daemon: >=20 > Your "cron" job on test_server > /export/home/user5/get_records >=20 > produced the following output: >=20 > ssh_packet_wrapper_input: invalid packet received: len 1819239269 > =20 > Has anyone experienced such an error before? Is there any special=20 > settings (perhaps environment variables or PATH) that need to be=20 > modified to allow cron daemon execute Expect script for users other=20 > that root? Any help is appreciated. >=20 I've seen that error using ssh v1 to connect to an ssh v2 server. You might want to try calling the specific ssh binary by its full path to make sure you have the right one. Austin This message is for the designated recipient only and may contain = privileged, proprietary, or otherwise private information. If you have = received it in error, please notify the sender immediately and delete = the original. Any other use of the email by you is prohibited. |