• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

UNIX - Using the cron to automate a script

SessionA

Junior Member

I have been having a problem with a UNIX script(Solaris 2.5.1) using crontab. I can manually run the script from my login, but when I use the "crontab -e" command to run the script it is unable to log into our FTP server and upload the data.

1.) It runs fine when I manually execute the script.
2.) It is using the Bourne shell.
3.) I know that the script is running from the cron, because I have an error log that is being created, it erroring out on the ftp command.
4.) The script's permissions are set to 755.
5.) The usr/bin/ftp has permissions of 555.

What could be different from when I run the script manually and when it is run from crontab?

Any help would be appreciated. I am still fairly new to UNIX, so I am sure one of you UNIX gurus out there can help me.

Thanks,

SessionA

 
It might be running under a different shell when run by cron.
Are you using somethign like this as the first line?
#!/usr/bin/sh
 
Back
Top