0
votes
2answers
60 views

How can I get a script to run constantly on Mac OS X?

I would like to do this: When the application VLC is open and I press the space bar, it pauses the video and an itunes starts to play. Then spacebar again would resume the workout video and pause my ...
0
votes
1answer
29 views

How to run a launchd task every weekend once?

I am trying to run a ruby program as a cron. I have figured out how to run the ruby program from a launchd The problem is that I don't know how to say "Run the job once every Sunday". Below is my ...
0
votes
1answer
62 views

Cronjob immediately shuts down mac after boot

I was messing around with cronjob trying to get it to forcibly shut down at a certain time everyday, but now I can't keep my computer on. It boots, loads whatever needs to load on startup, then ...
0
votes
2answers
34 views

User-friendly wrapper or replacement for `at` command under OS X

I often want my computer to automatically add something to my to-do list at some point in the future. In some cases I want to add the same thing at regular intervals. In these cases I use OS X's ...
0
votes
0answers
39 views

Scheduling a job using launchd to run on the last day of every month

I am using Mac OS X Server 10.8.3. I want to schedule a job using launchd so that the job will execute at 2:00 pm on the last day of every month. How can I schedule this through a plist file? I have ...
0
votes
0answers
52 views

Macbook with lid down goes back to sleep right after scheduled wakeup

I'm trying to run an app from crontab at 3 in the morning. My 2010 MacBook Pro running OSX 10.7.5 is usually turned off at this time of the night, so I'm setting Energy Saver's scheduled wake up at ...
1
vote
2answers
235 views

Run Crontab anytime after 4pm

I am trying to run a script through crontab in osx 10.8.5 that will run at 4:30. 30 16 * * 1-5 /Library/Frameworks/Python.framework/Versions/2.7/bin/python /Users/lego90511/PycharmProjects/Stock\ ...
0
votes
1answer
104 views

Automated git push attempt does not work - authentication issue

I'm trying to automate a very periodic git add/commit/push cycle using a shell script and cron under OS X 10.8.5. The script is as basic as one would expect it to be: cd /my/directory git add . git ...
0
votes
0answers
182 views

Crontab command set not working

I'm trying to set up crontab to run a shell script, but for some reason, the script doesn't get executed. I'm on system with OS X 10.8.5. crontab file 0 12 * * 1 /absolute/path/to/myscript.sh 0 15 * ...
0
votes
2answers
300 views

Automate python script mac

I want to set up a python script to run every weekday(not sunday and saturday) on my mac OSX 10.8.4. From what I have found so far, it looks like I want to use cron. But before I do something horrible ...
0
votes
3answers
116 views

OsX Crontab having no effect

I am dynamically appending cron tasks to the user crontab The tasks seem to be getting adde, crontab -e looks like: */10 * * * * /bin/sh /Users/john/Kiosk/app/content/update.sh @reboot /usr/bin/open ...
1
vote
1answer
578 views

git push to github via cron on mac

I'm trying to use git push in a bash script being run by crontab to push a commit to github. At the end of the script I'm doing this: # script processes some files, then: git add -A git commit -a -m ...
1
vote
1answer
86 views

python, cron and the interaction with Growl

I have the following python file called temp.py import subprocess p = subprocess.Popen('growlnotify -m \"Program is not running\"', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) ...
1
vote
1answer
214 views

How do I fix my crontab after a username change?

I recently changed my username, and I can't seem to access my crontab now: % crontab -e crontab: no crontab for blackl - using an empty one I thought I'd just edit the one I had under my old ...
1
vote
2answers
3k views

crontab - /bin/sh: wget: command not found

I want to set up a crontab on my Macbook Pro running Lion. I run the usual crontab -e and provide a quick job to see if everything is working ok --- */10 * * * * wget -O - -q -t 1 ...
2
votes
1answer
477 views

Schedule bash script for one time use on OSX

I'm trying to do a little script that, as a function, will take a file and date as input and delete that file on the specified date. So I only need it to schedule to run once, and that's it. I'm on ...
0
votes
1answer
327 views

Convert cronjob to launchctl plist

I should convert this cronjob to a launchctl plist. Is this possible? 0 8-18 * * 1-5 /usr/bin/curl -s --data "par1=a&par2=b&press=OK" http://mydomain.com/file.php /dev/null
0
votes
3answers
1k views

Simple Cron task in Mac OS X Lion

I am trying the Cron facility in Mac OS X Lion, but it does't seem to work. The crontab looks like this: MacBook-Air-de-Vincent:run vincentle$ crontab -l MAILTO=bxxxxxxxx@gxxx.com * * * * * (echo ...
0
votes
1answer
389 views

What is the difference between “periodic” and “cron” on OS X?

I bought a book on OS X and it says that launchd now control the scheduling of cron tasks, it this true? Also it says that if I place commands in /etc/daily.local that they will execute after the ...
1
vote
2answers
627 views

cron and at are not working

On my Mac (yeah, yeah I know. but my Linux box is at work) for some reason cron and at don't want to work. They both register that jobs have been added, with no syntax errors or any qualms at all. ...
0
votes
2answers
1k views

How to setup a cronjob to auto download a file on Mac?

I'd like to setup a cron job to auto weekly download a file from my web hosting. I'm running OS X.6.8. I want to specify the folder that the file downloads into. How can this be done? I just want to ...
8
votes
8answers
6k views

Error adding cronjobs in Mac OS X Lion

Until now, I have never attempted adding a crontask on my Mac. To my surprise, it threw an error.. [hayek@mac:/www/] 02:33:22 PM: crontab -e ...
4
votes
2answers
1k views

rsync over SSH with cron in osx-environment

I want to automatically download files and folders from a Linux server to which I have an SSH (and FTP) account. The files shall be downloaded on a regular basis (I suppose a cron is the right tool to ...
1
vote
1answer
208 views

How can I automate or script daily downloads for any new anti- virus databases, and then have the program scan my drive?

(I know there are much better softwares out there for the Mac so please don't go there! The politics of this company dictate which Anti virus we have to use) Anyway without any further wait: ...
1
vote
0answers
128 views

where is cron activity logged on OSX? [duplicate]

Possible Duplicate: Log of cron actions on OS X on SuSe in '/var/log/messages' I can read Jan 27 09:50:01 firebird /usr/sbin/cron[4004]: (root) CMD (/srv/www/htdocs/imacs .... Is there any ...
7
votes
5answers
10k views

how to make run cron on OSX 10.6.2?

Note: this question is not about how to edit cron tab but how to make cron work I edited my cron using env EDITOR=joe crontab -e I entered 1 * * * * echo 'test' > ...
2
votes
3answers
3k views

Run Script every 30 Seconds on Mac

I have created a cronjob that runs every 60 seconds which is not frequent enough for me. It is a simple command: wget localhost How can I run this commenad every 30, 16 seconds on my mac?
1
vote
1answer
108 views

Cron jobs and clipboards

Pbpaste doesn't seem to work as expected when I run it from a cron job. I have an applescript that opens a PDF file in Preview and sends it the copy command and then closes Preview. Next I'd like to ...
1
vote
1answer
622 views

The perfect cron job as a wake up service

I need a cron job script coded on MAC OS X following the process below: Put the computer into sleep mode on weekdays except Fridays at 10:30 pm. Wake the computer up from sleep, boost the volume to ...
4
votes
4answers
1k views

Mac crontab is never created

I am trying to setup a cron on my mac, but it seems that it never finishes creating a crontab for my user. I open terminal and enter: $ crontab -e Which returns this: crontab: no crontab for ...
2
votes
1answer
935 views

Cron job on Mac not running during sleep

I have a cron job that will mail a list of all Google Tasks to my email address daily at 7am. (http://privacylog.blogspot.com/2010/07/api-for-google-tasks.html) I am running this on my laptop which, ...
2
votes
2answers
1k views

Help with running crontab from root

I'm using Mac OS X and having trouble getting a cron job to run. I type the following: $ sudo -i $ crontab -e I then enter: * * * * * root ifconfig en0 down > /dev/null 0 19 * * * root ifconfig ...
4
votes
9answers
1k views

How can I write a cron job that will block my internet from 7pm to 7am? (So I can get some sleep)

I am using OSX 10.6 and it has cron built in. How can I write a cron job that will block my internet from 7pm to 7am every day? Im sure this must be simple but I could only find one example online ...
3
votes
2answers
2k views

Leopard Macbook very slow after waking up from sleep / cron?

Problem: Occasionally, my Macbook becomes very slow after waking up from sleep I open Activity Monitor and notice some processes like makewhatis are taking 100% CPU I kill the process[es] and then ...
1
vote
3answers
546 views

The 'which' command returns nothing via cron, but works via console

I've written a little utility in haXe + Neko that needs to execute some GIT commands. To avoid hardcoding the path to the GIT executable I'd like to use the which command to find out where it is. ...
23
votes
3answers
13k views

Log of cron actions on OS X

Does the cron which comes with OS X log its actions anywhere? I'm not looking for output of any particular cron job, but rather log of what cron is doing. On a couple linux machines I've checked, ...
2
votes
1answer
432 views

Running rsync on network connect

I have one Mac which is always on and is my main computer. I also have a MacBook and I'm trying to sync my iPhoto library. So I can successfully use rsync to sync files. I'm using a cron to have it ...
29
votes
8answers
37k views

How can I get a script to run every day on Mac OS X?

Cron? Launchd? iCal?? If so, how?
8
votes
3answers
17k views

How do I run a launchd command as root

I have the following launchctl command as a .plist file. It's loaded and set to run once a day but, it needs to run as root and I'm not sure how to verify this. Also, this cron job basically CDs ...
7
votes
3answers
2k views

Use cron to screen capture on Mac OS X

To analyze my own computer usage, not to spy on anyone (although it crossed my mind), I want to have cron capture the current screen every minute. * * * * * /bin/bash -c "/usr/sbin/screencapture ...
3
votes
5answers
5k views

crontab to wake osx from sleep

I have a crontab which will launch a certain program early in the morning (after I have gone to sleep) and close it again later in the morning (before I wake up). But my iMac will not execute the ...
9
votes
2answers
4k views

Common Mac OS folders/settings to check (when trying to get rid of a pesky self-launching app)

If there's an app that starts up by itself, what would the most efficient places to look for it be? Does anyone have a nice comprehensive list of where to check for Startup Items, Login Items, Login ...