Is there a way to execute a graph on Linux on the commercial Clover Server product? I have a cron script that I'd like to be able to execute a graph when it finishes. I've seen many references to the command line capability, but I don't see any mention in the documentation so I have no clue where to start.
Thanks,
Andrew
Thanks,
Andrew
-
Hi Andrew,
You can utilize Simple HTTP API, namely operation "graph_run". You can invoke such URL using curl, wget, or similar tool from your Cron script.
You probably know that, but just for sure - Server contains Cron-like scheduler internally - Scheduling. So I guess you have some special requirement to use system-wide Cron.
I hope this helps. -
I'm using a cron job because I can't get shell commands to work when Clover runs them due to the user (tomcat) that Clover runs as. If I could specify a different account for Clover to use when it runs the shell commands, I would be good. -
Hi,
Unfortunately Server can execute scripts only under Tomcat account. What you can do:- Use commandline like su - user2 -c "/path/myscript.sh" but that would need password. You can omit password by http://unix.stackexchange.com/questions ... t-password
- Use sudo and allow user to execute specific command without password in sudoers
- Try http://www.tuxation.com/setuid-on-shell-scripts.html
Just please keep in mind that those options are potential security threat.
I hope this helps.
Please sign in to leave a comment.
Comments 3