[ale] how do I - icon starts script starts 4 scripts

dev null zero two dev.null.02 at gmail.com
Wed Apr 17 14:13:39 EDT 2013


http://lmgtfy.com/?q=bash+scripting&l=1


On Wed, Apr 17, 2013 at 2:03 PM, Ron Frazier (ALE) <
atllinuxenthinfo at techstarship.com> wrote:

> Hi all,
>
> 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.
>
> 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.
>
> This question is not Litecoin / Bitcoin specific but is more related to
> Linux with a mining slant to it.
>
> 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.
>
> Right now, I'm copying those commands from a text file into the terminal
> window manually one by one and executing them.
>
> 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.
>
> 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.
>
> cd ~/cgminer
> export .....
> ./cgminer .....
>
> Also, how do I put comments in the file?
>
> 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.
>
> 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.
>
> Let's say that the master script is called START-MINERS.
>
> 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.
>
> 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.
>
> If you can help me with all or part of this puzzle, I'd greatly appreciate
> it.  Thanks in advance.
>
> Sincerely,
>
> Ron
>
>
>
> --
>
> Sent from my Android Acer A500 tablet with bluetooth keyboard and K-9 Mail.
> Please excuse my potential brevity if I'm typing on the touch screen.
>
> (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
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130417/87abcb0c/attachment.html>


More information about the Ale mailing list