LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-12-2005, 12:06 PM   #1
newbie_m
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
scripting to run perl scripts


Hi,

I would appreciate help with the following. I would like to write some
sort of shell script that would consist of 3 lines each calling a different
perl script to run.

How would I go about doing this?

The issue that I am most concerned with is that the calls complete
before going to the next line. Some of the calls can take a couple of
hours and one takes perhaps a day. The last one is the one that takes
about a day.

For example:

perl first_script.pl
perl second_script.pl
perl third_script.pl

I know in the shell script it will be listed sequentially but will
the script wait for first_script.pl to complete before calling second_script.pl?

If not should I do somthing like write three shell scripts and then
have another shell script contain the calls run the other three shell scripts?


thanks for your help
 
Old 01-12-2005, 12:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Re: scripting to run perl scripts

Quote:
Originally posted by newbie_m
I know in the shell script it will be listed sequentially but will
the script wait for first_script.pl to complete before calling second_script.pl?
YES.

To have them fired up at the same time you'd have to
explicitly detach them, using an & at the end of the
command.


Cheers,
Tink
 
  


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
how can I run my perl scripts in emacs linjia Linux - Software 1 12-05-2004 11:30 AM
my perl scripts wont run need help unixmad Linux - Software 4 09-14-2004 09:04 PM
upgraded webmin - perl scripts wont run jimi_j Linux - Software 0 05-25-2004 06:47 PM
Bash Shell Scripting *Integrate two scripts* Soulful93 Programming 1 04-29-2004 06:07 PM
How to Run perl scripts using bash Boudewijn Linux - Software 2 11-26-2003 04:37 AM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
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