Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: finway on January 05, 2012, 04:33:56 AM



Title: Can i run cgminer in the background? no window?
Post by: finway on January 05, 2012, 04:33:56 AM
Cause Symantec stops me run cgminer.exe for help.


Title: Re: Can i run cgminer in the background? no window?
Post by: Queelis on January 05, 2012, 10:25:12 AM
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.


Title: Re: Can i run cgminer in the background? no window?
Post by: finway on January 05, 2012, 12:09:38 PM
Thanks!


Title: Re: Can i run cgminer in the background? no window?
Post by: Gabi on January 05, 2012, 12:10:24 PM
Start using a decent antivirus... one reporting a miner as a virus is not a good one


Title: Re: Can i run cgminer in the background? no window?
Post by: jake262144 on January 06, 2012, 12:52:31 PM
Start using a decent antivirus... one reporting a miner as a virus is not a good one

I second that. Symantec just sucks.


Title: Re: Can i run cgminer in the background? no window?
Post by: bal3wolf on January 07, 2012, 06:37:02 PM
alot of av are reporting miners as viri now cause of the botnets


Title: Re: Can i run cgminer in the background? no window?
Post by: jake262144 on January 07, 2012, 07:59:38 PM
A lot of av programs are crap then :<


Title: Re: Can i run cgminer in the background? no window?
Post by: The LT on January 08, 2012, 11:16:23 AM
I'm also interested in running cgminer for windows as a service. So far I've tried sc.exe and NSSM without any success.


Title: Re: Can i run cgminer in the background? no window?
Post by: rjk on January 08, 2012, 12:17:23 PM
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).


Title: Re: Can i run cgminer in the background? no window?
Post by: jake262144 on January 08, 2012, 01:30:22 PM
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!


Title: Re: Can i run cgminer in the background? no window?
Post by: Transisto on January 11, 2012, 08:28:09 AM
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


Title: Re: Can i run cgminer in the background? no window?
Post by: SysRun on February 21, 2012, 10:48:28 PM
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.


Title: Re: Can i run cgminer in the background? no window?
Post by: Fcx35x10 on October 06, 2012, 05:58:03 AM
very useful  :)


Title: Re: Can i run cgminer in the background? no window?
Post by: rchapoteau on December 08, 2012, 02:43:46 AM
Where would that script run from?


Title: Re: Can i run cgminer in the background? no window?
Post by: xtral on January 23, 2013, 11:11:43 AM
RunAsSvc start a program as a service

http://www.pirmasoft.de/runassvc.php (http://www.pirmasoft.de/runassvc.php)


Title: Re: Can i run cgminer in the background? no window?
Post by: c0rrupt on May 02, 2013, 07:52:28 PM
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.


Title: Re: Can i run cgminer in the background? no window?
Post by: milone on May 03, 2013, 07:27:24 AM
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 (http://manotechnology.blogspot.com/p/cgwatcher.html)
GUIMiner: http://guiminer.org/ (http://guiminer.org/)


Title: Re: Can i run cgminer in the background? no window?
Post by: c0rrupt on May 03, 2013, 11:10:38 PM
Yop I test today CGWatcher and its AWSOME. Rly good work, keep going.


Title: Re: Can i run cgminer in the background? no window?
Post by: mxz280 on May 04, 2013, 08:54:52 AM
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


Title: Re: Can i run cgminer in the background? no window?
Post by: c0rrupt on May 04, 2013, 09:41:46 AM
I try that .vbs script it didnt work for me on W7 64bit. It run desired .bat and miner work but its visible :D.


Title: Re: Can i run cgminer in the background? no window?
Post by: c0rrupt on November 28, 2013, 03:40:52 PM
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.