LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 11:06 AM   #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, 11:33 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 PM.

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
Open Source Consulting | Domain Registration