have u got the soultion for this?
because iam following the same problem

can you help me out

-----Original Message-----
From: Trina Espinoza [mailto:[EMAIL PROTECTED]
Sent: Saturday, 16 August 2003 9:46 PM
To: [EMAIL PROTECTED]
Subject: Cron jobs and perl


Can someone tell me how to go about running a cron job with perl?

Here's what I have thus far:

1) I have a cron job:

04 09 * * 1-7 /cygdrive/c/Documents\ and\ 
Settings/trina.espinoza/Show_Tools/perlfile.sh 
53 08 * * 1-7 /var/cron/perlfile.sh 

2) I have a perlfile:

#!/usr/bin/sh
touch /tmp/cron_works;
sleep 10;

/usr/bin/perl /cygdrive/c/Documents\ and\ 
Settings/trina.espinoza/Show_Tools/rush_logsv1.pl > /cygdrive/c/Documents\ and\ 
Settings/trina.espinoza/Show_Tool/perl_out;




3)The problem

The cron seems to be pick up my scripts, but it drops them because it doesn't 
recognize that paths listed.
I can get to the paths in my shell, but the cron won't follow them. 

I was wondering, does the perlfile have to say #!perl/usr bin at the top or did I do 
it correctly by writing 
/usr/bin/perl /cygdrive/c/Documents\ and\ Settings/ ../  to get to my perl files. 
Also, are my escaping the spaces 
with slashes in Documents\ and\ Settings contributing to the problem? Does UNIX not 
escape spaces like perl?

Thank you,

Trina Espinoza

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to