Post
Topic
Board Hardware
Merits 9 from 2 users
Re: GekkoScience NewPac Stickminer Official Support Thread
by
Morlok8k
on 08/04/2019, 18:44:26 UTC
⭐ Merited by frodocooper (5) ,suchmoon (4)
I dont understand how to make a .bat file like you would in windows.

so you want to make a .sh file (shell script).

first line is always "#!/bin/sh"  (a.k.a hashbang then the script type.)
Then you include the command you would enter into the terminal on the next line.

obviously, it can get a lot more complicated, just like batch files, but that's the first step.

simple example:  run.sh

Code:
#!/bin/sh

cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.2pac -p x --suggest-diff 1  --gekko-2pac-freq 200

after you've made your .sh file, you need to make it executable.  the command for that is "chmod +x run.sh", or if you have a GUI, you can right click on it, and on one of the property pages you can select to make it executable.

then to run a shell script, you need to type in "./run.sh".  the dot slash is critical.