Post
Topic
Board Mining (Altcoins)
Re: [ANN] cudaMiner & ccMiner CUDA based mining applications [Windows/Linux/MacOSX]
by
miner256
on 05/08/2014, 17:02:33 UTC

Welcome back Christian!

I am struggling with something silly using ccminer with python (on linux) and I am sure you will know the answer:
I am using subprocess.Popen to start ccminer, and I redirect stdout to a file, *BUT* I am getting nothing in the file and still getting all the output to the screen :-(
My C programming is even worse than my python (and that's bad) but it looks like the applog function is writing to something other than STDOUT?
Or at least subprocess.Popen doesn't recognise it as STDOUT?
Any clues?

Ta

When you start the process, try to add "2> /somewhere/ccminer.log", that is how I get the output of my background ccminer in my linux rig Smiley

Thanks for the help. Christian dropped me an email with a hint. Basically ccminer is writing to STDERR and not STDOUT. I was only redirecting STDOUT and doing nothing with STDERR. That sorted it. Your comment is exactly right for people using bash shell, but I was doing it within python. For bash  2>&1  would do the trick (redirecting STDERR to STDOUT)

All working now. Ta