LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   It's cron capable to do this? (https://www.linuxquestions.org/questions/linux-software-2/its-cron-capable-to-do-this-235713/)

graveworm 09-27-2004 05:54 AM

It's cron capable to do this?
 
Hello everybody!
I want to know if there is the possibillity to run two perl scripts in cron but ......

Let's say we have 1.pl and 2.pl scripts.

I want 1.pl to run every 5 minutes and 2.pl to run imediately after 1.pl finished his execution!

It is possible or not ?

rjlee 09-27-2004 06:18 AM

Yes. First create a shell script like this:
Code:

#!/bin/bash
2.pl
1.pl

Then set up cron to run that script every five minutes (you may need to set up another crontab entry for cron.5minutely; see the crontab manpage for more). Alternatively, look at using at with atd — which has better support for flexible runtimes.


All times are GMT -5. The time now is 08:32 PM.