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!

crontab -e multiple cronjobs

Status
Not open for further replies.

rozzay

Programmer
Jan 3, 2002
142
US
Hi i am trying to do a multipe cronjob but not sure if i am doing this correctly and I don't think it is working due to the warning message I am receiving below:
=================
Warning: Cannot convert string "-dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface system-medium-r-normal-xs*-*-*-*-*-*-*-*-*" to type FontSet
=================
crontab -e

15 * * * * /usr/local/cyclone/data/14001695568GT/cycTest_FTP_GIS.pl
10 * * * * /usr/local/cyclone/data/14001695568GP/cycProd_FTP_GIS.pl
 
I don't see where it would be a cron error, but probably is something in your script.
 
I ran each of the .pl script individually and it was able to process successfully. Am I missing a semi-colon or something?
 
Cron doesn't use any environment settings. You have to set those manually. When you login to run these manually, you are using the users environment settings you logged in with.

I suspect that you need to source whatever users environment settings (i.e. .profile, .bash_profile, etc) within your script. Then the errors "should" go away.

Regards,
Chuck
 
yep. if scripts run fine from the command line but cron doesn't run then it is 5 9s an environment problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top