Title: Trying to write a health monitor but keep getting "No Protocol Specified" Post by: shotgun on July 23, 2011, 06:30:09 AM Linux question here. I've got the following code to grab health stats and each command works on its own when I login as a regular user. Some boxes execute ok without having an active X session on my console (via ssh), others require the X session. The GPUs are running fine and my mining is fine. The problem is when I try to run these commands from a shell script. They all complain about "No Protocol Specified". How can I fix this so they will run from a shell script via crontab?
Code: export DISPLAY=:0 Title: Re: Trying to write a health monitor but keep getting "No Protocol Specified" Post by: nomnomnom on July 24, 2011, 05:19:15 PM I am just guessing, but the "No protocol specified" sounds like it comes from the Xserver?
I am collecting some infos with collectd and I had to export Xauthority too, like export XAUTHORITY=/home/USER_LOGGED_INTO_X_AND_IS_MINING/.Xauthority But my script runs as the same user which is running the miners. If you run this as a different user you could try "xauth merge /home/USER_LOGGED_INTO_X_AND_IS_MINING/.Xauthority" and then the export stuff after that. Or you can play around with xhost and allow localhost for everything or something like that. Greetings nnn Title: Re: Trying to write a health monitor but keep getting "No Protocol Specified" Post by: shotgun on July 24, 2011, 07:20:21 PM Figured it out. I needed the following env vars set.
Code: ## Environment variables |