LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-05-2004, 06:50 AM   #1
AndiOliver
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: Red Hat
Posts: 4

Rep: Reputation: 0
Running two copy's of the same bash script


Let's assume the action is ping and that we have two scripts.
Script 1 tells Script2 what to ping.

What I would like is that the Script 1 will tell the script 2 what to ping and than without waiting the script 2 to finish the ping action to send another ping action to the same script2 to another address.
That way I would have two session of the script 2 pinging to two different address.

What I have done so far is that script 1 tells script to where to ping, but script 1 is waiting for script 2 to finish and than send's another address to ping.

Any ideea of how I am supposed to handle those scripts to have certain n address ping'ed in the same time?
 
Old 10-05-2004, 07:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
just let it fork off,

script2 ip.add.re.ss &
 
Old 10-06-2004, 03:46 AM   #3
AndiOliver
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: Red Hat
Posts: 4

Original Poster
Rep: Reputation: 0
At the first time, I was just about posting and ask more explanation. Than, being a man who likes to serch first through posts, I realize what you mean by fork.
It worked like a charm, thanks for your simple, hellpfull and right to the point answer.
 
  


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
bash script running as daemon Satriani Programming 12 03-29-2011 05:23 PM
Bash Script - How do I make sure my program is still running? nro Linux - Newbie 4 08-28-2005 01:57 PM
bash script, monitoring running PID? thebover Programming 4 08-26-2004 02:42 PM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 11:16 AM
Running bash script files in C++ (Kylix) Acherion Programming 4 07-25-2003 11:35 PM


All times are GMT -5. The time now is 05:33 AM.

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