LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-27-2004, 05:54 AM   #1
graveworm
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware9.1
Posts: 3

Rep: Reputation: 0
Question 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 ?
 
Old 09-27-2004, 06:18 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 66
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
Is Linare dual processor capable SuperDuper Linare 2 09-21-2004 08:29 AM
Parallel Execution Capable Scripts? irfanhab Programming 5 08-28-2004 06:04 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration