Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cronjob in solaris 10

Status
Not open for further replies.

rocco

IS-IT--Management
Oct 30, 2001
106
CA
we ran the job for backup using a cronjob.
We had solaris 7 and migrated to solaris 10.
Now my backup job does not run.

This is the error I get if I try to run the file manually.

ksh: ./.backup: cannot execute

If I enter each line manually it work so I know it has nothing to do with the code.

cat .backup
-------------------------------
#!/bin/ksh
. /export/home/sybase16/.profile
/opt/sybase12.5/OCS-12_5/bin/isql -Usa -Pxxx -Smyserver -I $SYBASE/interfaces -i $HOME/cronjobs/backup/bakckup6.sql

Wondering if in Solaris 10 I need to modify the actual .backup file. As mention before if I copy each line in the command window the backup will start running.

Thank you for your help.

 
It is something before .backup is run, so it isn't the script.

ls -l .backup?
or
some directory between / and where .backup has some permission or ownership problem. Is this run as root?

You have the #! and it should be /bin/ksh so that is fine.

If not root or simple owner, is the crontab "owner" a profile or RBACed?
 
Path problem?

Are you using the complete path to the backup script in the crontab?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top