<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Dennis,<br>
<br>
Thanks for the reply.&nbsp; I'm afraid that's over my head.&nbsp; But, I'll keep
it in mind for future use.&nbsp; Tell me more about what terminator does.<br>
<br>
Sincerely,<br>
<br>
Ron<br>
<br>
<br>
On 4/17/2013 3:28 PM, Dennis Ruzeski wrote:
<blockquote
 cite="mid:CAAUyTthPjFFjaZ9OLDDOAuK-tTSH4yUfqY42+RVb8C9LetB9cQ@mail.gmail.com"
 type="cite">
  <div dir="ltr">If you want the code for this hit me up off list but I
would open a file descriptor for each script and send all output to it,
then launch terminator (or similar with 4 sub terminals) and fire off a
screen session in each to display the contents of one of the file
descriptors.<br>
  <br>
  <br>
  </div>
  <div class="gmail_extra"><br>
  <br>
  <div class="gmail_quote">On Wed, Apr 17, 2013 at 3:08 PM, Brian
MacLeod <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:nym.bnm@gmail.com" target="_blank">nym.bnm@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN
PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
    <br>
On 4/17/13 2:35 PM, Ron Frazier (ALE) wrote:<br>
&gt; Thanks (I think) dev null. &nbsp;However, sometimes it's more efficient<br>
&gt; to just ask someone who knows rather than spend hours searching<br>
&gt; through results in Google. &nbsp;There are some nuances to my question<br>
&gt; that make the answers non obvious.<br>
    <br>
    <br>
I'm going to be a grouch here.<br>
    <br>
The only nuances that aren't obvious in this situation are the<br>
Terminal/Window Manger you use and the specification of window size,<br>
The rest of what you asked is answered very well with the various<br>
documents explaining how to write bash scripts, as posted by dev null,<br>
and where you place your icon / your philosophy on how things should<br>
start up on boot.<br>
    <br>
Unless you have ABSOLUTE physical control of this machine and its<br>
location, I would give great pause to having the window manager<br>
auto-login and do this unless you script in some sort of screen lock,<br>
but that would defeat your purpose in having the terminals displaying<br>
the information.<br>
    <br>
Frankly, if at all possible, I'd ditch the window-manager altogether<br>
and do this in screen, but even then with your heavy concentration on<br>
other security matters, this may not be the solution you think it is.<br>
&nbsp;And I capitalized ABSOLUTE for a reason.<br>
    <br>
    <br>
BEGIN QUOTE:<br>
- --------<br>
So, my first question is how do I set up a basic script file with<br>
these commands in it. &nbsp;I can fill in all the details later.<br>
    <br>
cd ~/cgminer<br>
export .....<br>
./cgminer .....<br>
    <br>
Also, how do I put comments in the file?<br>
- --------<br>
END QUOTE<br>
    <br>
    <br>
    <br>
ummm...<br>
    <br>
    <br>
    <br>
    <br>
BEGIN SCRIPT<br>
- -------<br>
#!/bin/bash<br>
    <br>
# Other than the required shell interpreter line<br>
# above, the hashed lines are comments.<br>
# This is a hash #<br>
    <br>
cd ~/cgminer<br>
export .....<br>
./cgminer .....<br>
    <br>
- -------<br>
END SCRIPT<br>
    <br>
    <br>
    <br>
BEGIN QUOTE<br>
- --------<br>
Finally, I want to create a master script to start all the other 4.<br>
Here's the trick. &nbsp;I want the master script to start each of the sub<br>
scripts in its own window and continue executing commands in the<br>
master script. &nbsp;I don't want the master script to hang waiting for<br>
MINER1 to exit before executing MINER2, and so forth.<br>
    <br>
Let's say that the master script is called START-MINERS.<br>
- --------<br>
    <br>
    <br>
BEGIN START-MINERS<br>
- --------<br>
#!/bin/bash<br>
    <br>
# The ampersand after the command causes a fork and puts<br>
# the job in the background.<br>
# Commonly, geometry can be set by --geometry= option.<br>
# See your terminal man page for details.<br>
    <br>
$TERMINAL $SCRIPT1 &amp;<br>
$TERMINAL $SCRIPT2 &amp;<br>
$TERMINAL $SCRIPT3 &amp;<br>
$TERMINAL $SCRIPT4 &amp;<br>
- --------<br>
END START-MINERS<br>
    <br>
    <br>
Brian</blockquote>
  </div>
  </div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

(PS - If you email me and don't get a quick response, you might want to
call on the phone.  I get about 300 emails per day from alternate energy
mailing lists and such.  I don't always see new email messages very quickly.)

Ron Frazier
770-205-9422 (O)   Leave a message.
linuxdude AT techstarship.com 
Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVgwTh3
Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9hPGUU
</pre>
</body>
</html>