[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Very Strange Script
You where right I got email and i think its something with the cron shell but
im not sure.
Its still don't explain why its not working from the 1 of November (I didn't
upgrade anything).
Some points
All the script is full path names.
The scripts have the header: #!/bin/tcsh -f
The script work perfectly when i ran it my self.
ssh-agent and ssh-add work ok (under cron)
ssh is working fine too (under cron)
scp is not working and generate the next message (under cron)
Subject: Cron <root@rs> /usr/local/scripts/now_usage.csh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Status: O
detail-11
SSH_AUTH_SOCK=/tmp/ssh-root/agent-socket-23019: Command not found.
export: Command not found.
SSH_AGENT_PID=23020: Command not found.
export: Command not found.
Agent pid 23020
Need passphrase for /root/.ssh/identity (root@rs.canaan.co.il).
Enter passphrase:
Could not open a connection to your authentication agent.
You have no controlling tty and no DISPLAY. Cannot read passphrase.
You have no controlling tty and no DISPLAY. Cannot read passphrase.
lost connection
"Peter L. Peres" wrote:
> On Mon, 16 Nov 1998, Ben Nes Michael wrote:
>
> > Its not that the crontab dont work. its doing half of the job but its not
> > executing scp while ssh itself work ok.
> >
> > the strange thing is that it worked ok on October and stoped working on
> > November
>
> Let me see, what did you upgrade since then ? Paths ? Mount points ?
> Permissions changed due to reinstall ?
>
> If scp is not exec'd then there is an error and you get email, yes ? Try
> to make sense of it and run the command by hand. If it works by hand (as
> root) you nearly certainly have a paths/permissions problem. Is there
> enough room to copy to ? Do you have permission to write to the
> destination ? Read on source ?
>
> Peter
--
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-6-6925757
Fax: 972-6-6925858
http://www.canaan.co.il
--------------------------