Bitcoin Forum
June 21, 2024, 04:30:00 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I keep the miner running after closing Putty? (cloud mining)  (Read 1945 times)
paperplox2 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
December 17, 2013, 08:44:16 PM
 #1

How do I keep the miner running after closing Putty? (digital ocean)
When I close Putty the miner stops aswell.
Kushedout
Legendary
*
Offline Offline

Activity: 1123
Merit: 1000


SaluS - (SLS)


View Profile
December 17, 2013, 08:50:48 PM
 #2

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.

Snard
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
December 17, 2013, 08:52:50 PM
 #3

You can also use tmux.
SlidingHorn
Full Member
***
Offline Offline

Activity: 196
Merit: 100

★Bitvest.io★ Play Plinko or Invest!


View Profile
December 17, 2013, 08:55:08 PM
 #4

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,

Tenchi
Full Member
***
Offline Offline

Activity: 322
Merit: 100



View Profile WWW
December 17, 2013, 08:57:22 PM
 #5

if you mining with cpuminer, just add -B at the end of the command line now the miner is running in the back

   ⚡⚡ PRiVCY ⚡⚡   ▂▃▅▆█ PRiVCY (PRIV) is a new PoW/PoS revolutionary privacy project  ☞ Best privacy crypto-market! █▆▅▃▂
    Own Your Privacy! ───────────────── WebsiteGithub  |  Bitcointalk  |  Twitter  |  Discord  |  Explorer ─────────────────
   ✯✯✯✯✯                 ✈✈✈[Free Airdrop - Starts 9th June][Tor]✈✈✈ ║───────────║ Wallet ➢ Windows  |  macOS  |  Linux
GreekBitcoin
Legendary
*
Offline Offline

Activity: 1428
Merit: 1001


getmonero.org


View Profile WWW
December 19, 2013, 09:17:25 AM
 #6

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...
montecristo83
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 19, 2013, 09:31:31 AM
 #7

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.
mattle74
Full Member
***
Offline Offline

Activity: 163
Merit: 100


View Profile
December 19, 2013, 09:33:37 AM
 #8

Screen is good advice.

If it's not installed, just run apt-get install screen
GreekBitcoin
Legendary
*
Offline Offline

Activity: 1428
Merit: 1001


getmonero.org


View Profile WWW
December 19, 2013, 09:34:28 AM
 #9

Ok guys. Thank you!
mbs1337
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 19, 2018, 11:04:21 PM
 #10

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!