Author

Topic: run cgminer in background after logout (gnu/linux) [solved] (Read 2091 times)

legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Hey, thanks michelem, I will try that.  I guess I shoulda read `man screen' eh? Smiley

EDIT: that did it!
legendary
Activity: 1015
Merit: 1000
Hi,

I got my usb miner running nicely with cgminer on my gnu/linux laptop.  However, this particular laptop sits in a closet and acts more like a fileserver than a laptop (the screen gave out on it years ago).  Therefore I ssh into it from another computer.

This is going dandy except that I want to logout of the ssh session and leave the miner running until I log in again later.

I experimented with:

$ ./cgminer ... &

But logout (ie, $ exit) stops the job.

And I tried:

$ screen cgminer ... &

But again, logout stops the job.

I'm sure there's some easy solution.  Let me know!

--TSP

This should do the job:

Code:
screen -dmS cgminer ./cgminer
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
I guess I could use a cron job for this, but surely there's some simpler way to keep a job running after you logout.  I'm so surprised no one has this on top of their heads .... alas.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Hi,

I got my usb miner running nicely with cgminer on my gnu/linux laptop.  However, this particular laptop sits in a closet and acts more like a fileserver than a laptop (the screen gave out on it years ago).  Therefore I ssh into it from another computer.

This is going dandy except that I want to logout of the ssh session and leave the miner running until I log in again later.

I experimented with:

$ ./cgminer ... &

But logout (ie, $ exit) stops the job.

And I tried:

$ screen cgminer ... &

But again, logout stops the job.

I'm sure there's some easy solution.  Let me know!

--TSP
Jump to: