Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JGruber

macrumors 6502
Original poster
Feb 13, 2006
348
2
Ok, so on my OSX server, we have Python running at 100% CPU usage at random times, and to get it to stop, I'm forced to run a Terminal command.

I want to know if it is possible to use Automator to run said command in Terminal under root once a day at a given time, with no user input.

The command I am using is
Code:
sudo killall -9 Python
 
cron is probably what you want, but if you really need to do it in Automator, you can create a shell script with your command in it and then use the "Run Shell Script" action.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.