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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-14-2007
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
Hi,

I did encounter a similar problem previously. (ie, i can run the script manually, but it does not run in cron)

Perhaps you can try:
1. chmod the script, say try to allow all to read,write,exec ( i know its dangerous, but if it works, you can narrow it down to permission, maybe can try to chmod to 750, or something)
2.Set your environment. ( because when you log in to run manually, somehow the system knows that its you, but when you do it in cron, the system does not. I am not sure of the exact details, though)