Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For me it is quite easy to automate a jar file to run on a pc.

java -jar "C:\...\mFilePath\myJar.jar"

stick this into a cmd file, and schedule it.

Now, migrating over to a mac, i am unsure how to do this. I assumed the automator would be more straight forward, but i find it not to be. I must be doing something wrong.

Please, any advice is appreciated!!

share|improve this question

migrated from stackoverflow.com Nov 5 '12 at 9:47

This question came from our site for professional and enthusiast programmers.

    
If you have already searched this site and haven't found anything useful, you might also want to consider searching the Super User sister site. I actually find your question more relevant there than here and, accordingly, am voting to migrate it to that site. –  Andriy M Nov 4 '12 at 16:28
    
ok, i can agree with that. i have voted as well. thank you –  jason m Nov 4 '12 at 16:30

2 Answers 2

If you're not familiar with launchd you could also use cron, what is most commonly used under *nix. Just fire up Terminal and use "crontab -e" to add your job.

Format for crontab is

min hour day month day-of-week command

For more information look at Wikipedia :: Cron

share|improve this answer

You can schedule scripts to run with launch agents. (man launchd , man launchctl). Lingon is a useful resource.

share|improve this answer
    
Links I found useful for learning about launchd and launchctl: dustin.github.com/2010/02/28/running-processes.html, alvinalexander.com/mac-os-x/…, alvinalexander.com/mac-os-x/…. Also, if you are a Ruby person, check out Mike Perham's lunchy. –  Telemachus Nov 5 '12 at 10:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.