Author

Topic: How do I keep the miner running after closing Putty? (cloud mining) (Read 1952 times)

newbie
Activity: 1
Merit: 0
Thanks for this Smiley 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.
legendary
Activity: 1428
Merit: 1001
getmonero.org
Ok guys. Thank you!
full member
Activity: 163
Merit: 100
Screen is good advice.

If it's not installed, just run apt-get install screen
member
Activity: 112
Merit: 10
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.
legendary
Activity: 1428
Merit: 1001
getmonero.org
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...
full member
Activity: 322
Merit: 100
if you mining with cpuminer, just add -B at the end of the command line now the miner is running in the back
full member
Activity: 196
Merit: 100
★Bitvest.io★ Play Plinko or Invest!
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,
full member
Activity: 140
Merit: 100
You can also use tmux.
legendary
Activity: 1123
Merit: 1000
SaluS - (SLS)
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.
newbie
Activity: 11
Merit: 0
How do I keep the miner running after closing Putty? (digital ocean)
When I close Putty the miner stops aswell.
Jump to: