Web Hosting Talk







View Full Version : Conjob help!!!


TheRealDeal
12-06-2001, 12:59 AM
Hi,

This is what I do in telnet to execute a script.

> cd /home/sites/games
> /home/sites/games/cgi-bin/t.pl *.jpg

*I don't know if you need this info but the program is using Imagemagick*

I want to execute this daily. How can I do this using conjob? Thanks in advance. :)

RutRow
12-06-2001, 02:06 AM
0 2 * * * cd /home/sites/games; ./cgi-bin/t.pl *.jpg

That would execute every day at 2 AM.

TheRealDeal
12-06-2001, 03:09 AM
Thanks..

Here is another problem.

The script execute fine in "Telnet mode"

But when I do a cron job, it could not find some of my utilities. (Imagemagick) Do I need to path it? How can I do this?

Abu Mami
12-06-2001, 07:59 AM
Originally posted by TheRealDeal
Conjob help!!!

Conjob? Hmm, sounds like you're asking for help with a bad hosting company :-)

RutRow
12-06-2001, 09:48 AM
Yes, you need to set your PATH environment variable in your Perl script.

TheRealDeal
12-06-2001, 11:50 AM
Got it. Thanks people.

jeremiah23
12-06-2001, 03:27 PM
Originally posted by Abu Mami


Conjob? Hmm, sounds like you're asking for help with a bad hosting company :-)

hehe:D