The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: cron help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-29-2007
convenientstore convenientstore is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 42
cron help

below excution.. when run directly from console.. works.. (through script name).. but when i run from cron.. i get below... why?

I have auto ssh into server enabled via authorization key..

Is there way for me to run as me? for cron or??

[ output from cron.. executing the script.. that was mail to me ]
+ rm -rf /tmp/something
+ date +%H
current=23
+ ssh server01 tail -1 /xxx/xxx
/home/user/filename: ssh: execute permission denied