[TAG] Quick bash scripting question
Justin Piszcz
jpiszcz at lucidpixels.com
Mon Aug 15 23:29:04 MSD 2011
On Mon, 15 Aug 2011, Deividson Okopnik wrote:
> Hello everyone
>
> Im trying to do something pretty straightforward with a bash script,
> but I guess im not searching for the correct name.
>
> I need to open several programs on the background - 5 copies of
> client, 5 copies of client1, while dismissing the program output
>
> Any help?
>
> Thanks
>
> Deividson
Does this work for you?
# nohup ./client > /dev/null 2>&1 &
[1] 21837
# nohup ./client > /dev/null 2>&1 &
[2] 21840
# nohup ./client > /dev/null 2>&1 &
[3] 21842
# nohup ./client > /dev/null 2>&1 &
[4] 21844
# nohup ./client > /dev/null 2>&1 &
[5] 21846
# nohup ./client1 > /dev/null 2>&1 &
[6] 21849
# nohup ./client1 > /dev/null 2>&1 &
[7] 21851
# nohup ./client1 > /dev/null 2>&1 &
[8] 21853
# nohup ./client1 > /dev/null 2>&1 &
[9] 21856
# nohup ./client1 > /dev/null 2>&1 &
[10] 21858
# ps | grep -c client
10
Justin.
More information about the TAG
mailing list