Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 7, 2009, 10:57 AM   #1
JGruber
macrumors 6502
 
Join Date: Feb 2006
Running a command in Terminal from Automator?

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
JGruber is offline   0 Reply With Quote
Old Jul 7, 2009, 11:03 AM   #2
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
You're probably better off scheduling it with cron.
angelwatt is offline   0 Reply With Quote
Old Jul 7, 2009, 12:35 PM   #3
rowsdower
macrumors 6502
 
Join Date: Jun 2009
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.
rowsdower is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
UUID Command in Terminal? cdoolittle17 Mac Programming 3 Feb 28, 2014 01:54 PM
Terminal command error Ddyracer OS X 10.8 Mountain Lion 7 Aug 27, 2013 10:51 AM
Terminal command andynewfriends Mac Basics and Help 0 Jun 11, 2013 02:25 PM
Apple Automator Application using Terminal lldubbs Mac Programming 3 Apr 15, 2013 11:15 AM
Need command in terminal chadteetzen OS X 1 Jun 8, 2012 11:55 PM

Forum Jump

All times are GMT -5. The time now is 01:44 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC