Author

Topic: Can i run cgminer in the background? no window? (Read 17294 times)

newbie
Activity: 22
Merit: 0
November 28, 2013, 11:40:52 AM
#21
Ok it work, but it must be different, just make .txt file with this
Code:
Set WshShell = CreateObject("WScript.Shell" ) 
WshShell.Run chr(34) & "C:\cgminer\cgminer.exe" & Chr(34), 0
Set WshShell = Nothing
replace your cgminer.exe path, save, rename .txt to .vbs and done.

This works, but when you want start it with windows, you must put it to start up menu (right click open for all, when for all users).

But when I try to run it through registry or task sheduler, it wont work. When some one solve it, how to run it wia task sheduler as admin or something like this, so cgminer will run hidden, after login any user, it will run after log off or it start with system let me know. BTW when I test it with task sheduler, he run script, cgminer start and then close immediately.
Sorry for my english.
newbie
Activity: 22
Merit: 0
I try that .vbs script it didnt work for me on W7 64bit. It run desired .bat and miner work but its visible Cheesy.
member
Activity: 100
Merit: 10
scheduled task on log-in, vbs file running a .bat with hide parameter.

Code:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\cg.bat" & Chr(34), 0
Set WinScriptHost = Nothing
newbie
Activity: 22
Merit: 0
Yop I test today CGWatcher and its AWSOME. Rly good work, keep going.
sr. member
Activity: 434
Merit: 251
CGWatcher & CGRemote
Quote
Still trying found some easy and clear way how to run cgminer as service or only in tray.

If running as a service isn't a requirement and you just want it minimized to the system tray, you can use CGWatcher to launch the miner in a hidden process, and then minimize CGWatcher to the system tray (set this in the Settings tab.) GUIMiner does this as well. Both applications provide a GUI to CGMiner and launch it as a hidden process. Then you can minimize these GUI applications to the system tray.

CGWatcher: http://manotechnology.blogspot.com/p/cgwatcher.html
GUIMiner: http://guiminer.org/
newbie
Activity: 22
Merit: 0
Its not working as service with RunAsSvc. Still trying found some easy and clear way how to run cgminer as service or only in tray.
legendary
Activity: 1204
Merit: 1001
RunAsSvc start a program as a service

http://www.pirmasoft.de/runassvc.php
newbie
Activity: 56
Merit: 0
Where would that script run from?
full member
Activity: 210
Merit: 100
very useful  Smiley
hero member
Activity: 616
Merit: 500
Portland Bitcoin Group Organizer
scheduled task on log-in, vbs file running a .bat with hide parameter.

Code:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\cg.bat" & Chr(34), 0
Set WinScriptHost = Nothing

Thanks Transisto, I'll give this a shot on my more clandestine machines.
donator
Activity: 1731
Merit: 1008
scheduled task on log-in, vbs file running a .bat with hide parameter.

Code:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\cg.bat" & Chr(34), 0
Set WinScriptHost = Nothing
full member
Activity: 210
Merit: 100
As to running miners in the background... will this be close enough?

Grab virtual desktop utility by Sysinternals Microsoft here:
http://technet.microsoft.com/en-us/sysinternals/cc817881

Microsoft provides Desktops totally free of charge, it requires no installation, no admin rights, and weighs just 60 kilobytes.

Run it, move all the miner windows out of your main desktop and you're good to go!
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
I'm also interested in running cgminer for windows as a service. So far I've tried sc.exe and NSSM without any success.
sc.exe only works if a program is specifically coded to use it. If you are on Vista or newer, running as a service will not work, because the video drivers run in usermode (I.E., you must be logged in).
full member
Activity: 186
Merit: 100
I'm also interested in running cgminer for windows as a service. So far I've tried sc.exe and NSSM without any success.
full member
Activity: 210
Merit: 100
A lot of av programs are crap then :<
sr. member
Activity: 476
Merit: 250
Power to the people!
alot of av are reporting miners as viri now cause of the botnets
full member
Activity: 210
Merit: 100
Start using a decent antivirus... one reporting a miner as a virus is not a good one

I second that. Symantec just sucks.
legendary
Activity: 1148
Merit: 1008
If you want to walk on water, get out of the boat
Start using a decent antivirus... one reporting a miner as a virus is not a good one
hero member
Activity: 714
Merit: 500
Thanks!
newbie
Activity: 36
Merit: 0
For that, try adding an exception to Symantec (the whole cgminer folder).

If you don't want to see the window, get TrayIt!. It will minimize the window to system tray.

I don't think you're able to run cgminer as a service, though.
hero member
Activity: 714
Merit: 500
Cause Symantec stops me run cgminer.exe for help.
Jump to: