<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>"&gt;&amp;" (or "&amp;&gt;") together &nbsp;mean send standard out and standard error to the following file. They will get interpreted by the shell not get passed into mate-terminal. In other words, it's the std out/err of mate-terminal itself being sent to /dev/null. I don't know if mate-terminal actually generates any std out/err but it &nbsp;couldn't hurt. The second &amp; by itself is the background one.<br><br><div>Scott<br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Ron Frazier (ALE)" &lt;atllinuxenthinfo@techstarship.com&gt;<br><b>To: </b>"Atlanta Linux Enthusiasts" &lt;ale@ale.org&gt;<br><b>Sent: </b>Thursday, April 18, 2013 10:50:44 AM<br><b>Subject: </b>Re: [ale] how do I - icon starts script starts 4 scripts<br><br>Hi Phil,<br><br>Thanks for the note. &nbsp;I'll look up the disown command.<br><br>Wouldn't using &gt;/dev/nul send all the output of my sub scripts to a <br>black hole instead of their terminal windows? &nbsp;I wouldn't be able to see <br>their output then.<br><br>Also, why did you suggest a second "&amp;" command?<br><br>Sincerely,<br><br>Ron<br><br><br>On 4/18/2013 8:54 AM, Phil Turmel wrote:<br>&gt; Hi Ron,<br>&gt;<br>&gt; On 04/17/2013 09:35 PM, Ron Frazier (ALE) wrote:<br>&gt;<br>&gt; &nbsp; &nbsp;<br>&gt;&gt; #!/bin/bash -eu<br>&gt;&gt; # program to start all mining scripts<br>&gt;&gt; cd ~/mining-scripts<br>&gt;&gt; # commands to start the first miner<br>&gt;&gt; mate-terminal --geometry=70x4+1800+100 -t "Miner 1" -e ./miner1&amp;<br>&gt;&gt; # commands to start the second miner<br>&gt;&gt; mate-terminal --geometry=70x4+1800+250 -t "Miner 2" -e ./miner2&amp;<br>&gt;&gt; # commands to start the third miner<br>&gt;&gt; mate-terminal --geometry=70x4+1800+400 -t "Miner 3" -e ./miner3&amp;<br>&gt;&gt; # commands to start the fourth miner<br>&gt;&gt; mate-terminal --geometry=70x4+1800+550 -t "Miner 4" -e ./miner4&amp;<br>&gt;&gt; echo "Press enter to continue."<br>&gt;&gt; read junk<br>&gt;&gt;<br>&gt;&gt; I have to use mate-terminal to activate Mint's terminal emulator. &nbsp;The<br>&gt;&gt; --geometry option (mentioned by both you and Brian) sets the window size<br>&gt;&gt; for each MINERx script as well as a location so they all stack up on the<br>&gt;&gt; right of my monitor. &nbsp;The -t option specifies a unique title for each<br>&gt;&gt; window. &nbsp;Each MINERx program is started with the "&amp;" command (also<br>&gt;&gt; mentioned by you and Brian) so the master script keeps on going without<br>&gt;&gt; waiting. &nbsp;For some reason, I had to put the read command at the end of<br>&gt;&gt; the START-MINERS script or the sub scripts never kick off. &nbsp;I have no<br>&gt;&gt; idea why.<br>&gt;&gt; &nbsp; &nbsp; &nbsp;<br>&gt; When a script ends, bash kills off any unfinished background tasks. &nbsp;To<br>&gt; avoid this, the script must explicitly "disown" them. &nbsp;However, the<br>&gt; background tasks that are still connected to the original terminal's<br>&gt; file descriptors might suicide on the loss of those pipes.<br>&gt;<br>&gt; I would rewrite your script as follows:<br>&gt;<br>&gt; #!/bin/bash -eu<br>&gt; # program to start all mining scripts<br>&gt; cd ~/mining-scripts<br>&gt;<br>&gt; # commands to start the first miner<br>&gt; mate-terminal --geometry=70x4+1800+100 -t "Miner 1" -e ./miner1&amp;&gt;/dev/null&amp;<br>&gt;<br>&gt; # commands to start the second miner<br>&gt; mate-terminal --geometry=70x4+1800+250 -t "Miner 2" -e ./miner2&amp;&gt;/dev/null&amp;<br>&gt;<br>&gt; # commands to start the third miner<br>&gt; mate-terminal --geometry=70x4+1800+400 -t "Miner 3" -e ./miner3&amp;&gt;/dev/null&amp;<br>&gt;<br>&gt; # commands to start the fourth miner<br>&gt; mate-terminal --geometry=70x4+1800+550 -t "Miner 4" -e ./miner4&amp;&gt;/dev/null&amp;<br>&gt;<br>&gt; # Disconnect the background tasks from this script<br>&gt; disown -a<br>&gt;<br>&gt;<br>&gt;<br>&gt; HTH,<br>&gt;<br>&gt; &nbsp; &nbsp;<br><br><br>-- <br><br>(PS - If you email me and don't get a quick response, you might want to<br>call on the phone. &nbsp;I get about 300 emails per day from alternate energy<br>mailing lists and such. &nbsp;I don't always see new email messages very quickly.)<br><br>Ron Frazier<br>770-205-9422 (O) &nbsp; Leave a message.<br>linuxdude AT techstarship.com<br>Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVgwTh3<br>Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9hPGUU<br><br>_______________________________________________<br>Ale mailing list<br>Ale@ale.org<br>http://mail.ale.org/mailman/listinfo/ale<br>See JOBS, ANNOUNCE and SCHOOLS lists at<br>http://mail.ale.org/mailman/listinfo<br></div><br></div></div></body></html>