Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: paperplox2 on December 17, 2013, 08:44:16 PM



Title: How do I keep the miner running after closing Putty? (cloud mining)
Post by: paperplox2 on December 17, 2013, 08:44:16 PM
How do I keep the miner running after closing Putty? (digital ocean)
When I close Putty the miner stops aswell.


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: Kushedout on December 17, 2013, 08:50:48 PM
How do I keep the miner running after closing Putty? (digital ocean)
When I close Putty the miner stops aswell.

use "screen" command if available.  Than press ctrl+A, than ctrl+D to detach. Close session.

Or add "&" at the end of the command than end session.


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: Snard on December 17, 2013, 08:52:50 PM
You can also use tmux.


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: SlidingHorn on December 17, 2013, 08:55:08 PM
How do I keep the miner running after closing Putty? (digital ocean)
When I close Putty the miner stops aswell.

use "screen" command if available.  Than press ctrl+A, than ctrl+D to detach. Close session.

Or add "&" at the end of the command than end session.

I could be wrong, but I believe adding the & will only send the process to the background and allow you to execute other commands with that session.

It would not change the fact that the process is owned by PuTTY, and, if I'm thinking correctly, will still kill the child process when PuTTY is exited.

nohub should work, however,


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: Tenchi on December 17, 2013, 08:57:22 PM
if you mining with cpuminer, just add -B at the end of the command line now the miner is running in the back


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: GreekBitcoin on December 19, 2013, 09:17:25 AM
Wait a second. That means that when i close putty DO will stop everything? But why?

also if this indeed happens and i will reconnect with putty, what happens? I reconnected, put username and pass but i dont see anything...


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: montecristo83 on December 19, 2013, 09:31:31 AM
Put this in front of the miner command:

Code:
screen -S 1

Now press CTRL+A followed by CTRL+D. You can safely close Putty.

To resume, type

Code:
screen -r 1

or just

Code:
screen -r
(This will tell you if you have multiple screens running.)

Wait a second. That means that when i close putty DO will stop everything? But why?

also if this indeed happens and i will reconnect with putty, what happens? I reconnected, put username and pass but i dont see anything...

If you close down Putty while the miner window is active, it will stop mining. When you reconnect the miner will not be running. Follow my guide above if you don't want to leave Putty running.


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: mattle74 on December 19, 2013, 09:33:37 AM
Screen is good advice.

If it's not installed, just run apt-get install screen


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: GreekBitcoin on December 19, 2013, 09:34:28 AM
Ok guys. Thank you!


Title: Re: How do I keep the miner running after closing Putty? (cloud mining)
Post by: mbs1337 on February 19, 2018, 11:04:21 PM
Thanks for this :) Helped me alot!

Put this in front of the miner command:

Code:
screen -S 1

Now press CTRL+A followed by CTRL+D. You can safely close Putty.

To resume, type

Code:
screen -r 1

or just

Code:
screen -r
(This will tell you if you have multiple screens running.)

Wait a second. That means that when i close putty DO will stop everything? But why?

also if this indeed happens and i will reconnect with putty, what happens? I reconnected, put username and pass but i dont see anything...

If you close down Putty while the miner window is active, it will stop mining. When you reconnect the miner will not be running. Follow my guide above if you don't want to leave Putty running.