Title: RE: [Perl-unix-users] How to make a job dependent on another

Bheem,
     one fairly simple way would be to run the current cron job from a script that runs the job followed by your perl script.   Then modify cron to run your script instead of the current job.

Confused?

Assuming your current job is named "job1" and your perl script is named "myscript", create a shell script name "job2" along the lines of

---------------------
#!/usr/bin/ksh

job1
myscript
---------------------------

then replace job1 in cron with job2

Hope this is of use


Steve Aaron

-----Original Message-----
From: AITHA, BHEEMSEN (SBCSI) [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2002 02:17
To: '[EMAIL PROTECTED]'
Subject: [Perl-unix-users] How to make a job dependent on another


Hi listers,

I want to make my perl script job to be dependent on a particular cron job.
How do I do that ? I think I can use sleep function in my perl script. But I
don't know how to use that. Can some one help me with an example. I am on
UNIX.

Thanx..
-Bheem
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to