I had that exact same problem, its because calling scp as /usr/sbin/scp or 
wherever it is. scp actually calls sftp, without the path, so it doesnt know 
where to find it so it exits.. so at the top of your shell script... you must 
set the path.
PATH=/usr/sbin:/usr/local/sbin:.. .. ..  etc ..
whever your scp sftp ssh etc binaries reside
it took me the good part of an hour to figure this one out!! then i had 
problems with scp and wildcards (like for getting directories) leaving too 
many files open... so i decided to use rsync and piping it through ssh as a 
shell to xfer files.. rsync only transfers the DIFFERENCE in the files, 
instead of the whole thing... much better IMHO..
hope this helps.

----------------------------
James Grant
QLDC/.NetReach/Part of AXXent Corp.
Systems Administrator / Programmer
(613) 962-2500 ext 32
----------------------------

On Tue, 15 Aug 2000, Andrew McCague wrote:
> I have a script that uses scp to get and send files from a
> remote host.  I set up RSA and it seems to work fine when i run it as the
> user.  However, when i run it under a crontab it cant do any of the scp
> stuff.  I get an error of 65280.
>
>
> Any ideas?
>
> Andrew

Reply via email to