<div dir="ltr"><a href="http://lmgtfy.com/?q=bash+scripting&l=1">http://lmgtfy.com/?q=bash+scripting&l=1</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 2:03 PM, Ron Frazier (ALE) <span dir="ltr"><<a href="mailto:atllinuxenthinfo@techstarship.com" target="_blank">atllinuxenthinfo@techstarship.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
You'll be happy to know that I have now built one computer running only Linux (Mint 13) for running Litecoin / Bitcoin mining. There's no Windows on it. I'll also use this for some of my experimentation and learning activities and maybe a vpn server or something. That's down the road. As long as it does the things I need it to do, I won't install Windows. Yea! No license fee.<br>
<br>
By the way, I'm back to the Gnome 2 interface (in the form of Mate) that I grew to like with Ubuntu 10.04 before they abandoned me with Unity on 11.10. I have my MENU BUTTON back, my PANELS, and on them, my cpu usage monitor, my cpu frequency monitor, my force close button, and - if I can get the sensor to work - my temperature monitor.<br>
<br>
This question is not Litecoin / Bitcoin specific but is more related to Linux with a mining slant to it.<br>
<br>
To start the mining process on any given graphics card, I need to open a terminal window, go to the ~/cgminer directory, and issue one export command to modify the environment. Then I have to run a ./cgminer command with a whole bunch of parameters. The terminal window stays open while mining and displays status information. The command I run is unique to each graphics card.<br>
<br>
Right now, I'm copying those commands from a text file into the terminal window manually one by one and executing them.<br>
<br>
I want to put those commands in a script file called, say, MINER1. So, if I were to open a terminal and just type ./MINER1 and hit enter, all that would happen automatically.<br>
<br>
So, my first question is how do I set up a basic script file with these commands in it. 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>
Now, as I said, the command for each graphics card is unique. So, I need to set up a MINER2, MINER3, and MINER4 scripts, which are customized for the individual graphics cards.<br>
<br>
Finally, I want to create a master script to start all the other 4. Here's the trick. I want the master script to start each of the sub scripts in its own window and continue executing commands in the master script. I don't want the master script to hang waiting for MINER1 to exit before executing MINER2, and so forth.<br>
<br>
Let's say that the master script is called START-MINERS.<br>
<br>
Finally, I want to kick off the whole thing from one icon on the desktop which triggers START-MINERS which triggers MINER1, 2, 3, and 4. I don't care if the master script has a terminal window left on the screen or not when it's done. However, when it's finished, there should be 4 active terminal windows on the screen mining on 4 separate graphics cards.<br>
<br>
Even better, I'd like the windows to automatically size themselves to a certain size and stack up all in a column on the monitor. Better still, would be to have the whole thing auto start when booting.<br>
<br>
If you can help me with all or part of this puzzle, I'd greatly appreciate it. Thanks in advance.<br>
<br>
Sincerely,<br>
<br>
Ron<br>
<br>
<br>
<br>
--<br>
<br>
Sent from my Android Acer A500 tablet with bluetooth keyboard and K-9 Mail.<br>
Please excuse my potential brevity if I'm typing on the touch screen.<br>
<br>
(PS - If you email me and don't get a quick response, you might want to<br>
call on the phone. I get about 300 emails per day from alternate energy<br>
mailing lists and such. I don't always see new email messages very quickly.)<br>
<br>
Ron Frazier<br>
770-205-9422 (O) Leave a message.<br>
linuxdude AT <a href="http://techstarship.com" target="_blank">techstarship.com</a><br>
Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVgwTh3<br>
Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9hPGUU<br>
<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br></div>