The cron tag has no wiki summary.
2
votes
1answer
68 views
How can root launch a regular Mac application from a cron job in /etc/crontab?
I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user.
I've tried a bunch of things but nothing I think should work does.
...
1
vote
1answer
34 views
Cron log to Notification bar [duplicate]
I have a couple of cron jobs that I would like to log output to the Notification app in Mountain Lion. I've searched and and figured out how to log cron output by editing the plist file, but nothing ...
0
votes
0answers
121 views
A working applescript fails when running via cron
MacOs 10.8.2
I have 2 applescripts shown below. They are arranged in one shell script to run one after another by using osascript (just to simplify the example).
Everything works fine when starting ...
0
votes
1answer
113 views
Lauchd - Run task multiple times between time interval
I want to run a script every 15 minutes between 12:00 AM and 4:00 AM. Is there a way to do that with launchd?
I know you can specify and array of dictionaries using StartCalendarInterval to ...
2
votes
1answer
222 views
Use cron to screencapture on Mountain Lion
I want to set cron to capture the current desktop every hour:
screencapture -Cd -tjpg ~/Desktop/screen-`date +"%Y%m%d-%H%M"`.jpg
I tired this method but it seems doesn't work on Mountain Lion. I ...
2
votes
1answer
3k views
Cron doesn't run after installing Mountain Lion. How can I make them run again?
My Cron tasks stopped running after I installed Mountain Lion. How do I get them to run again?
1
vote
1answer
565 views
How can I mount disks via cron in Mountain Lion?
Is there a way to mount disks in Mountain Lion that works with cron?
The following command works fine from the Terminal:
/usr/sbin/diskutil mount disk1s6
But when executed via my crontab, it ...
5
votes
2answers
1k views
Schedule multiple wake up times for Mac?
I have systems running Mac OS X 10.5.8 and 10.6.8 that I would like to schedule some cron jobs for with the Cronnix GUI application.
I prefer those computers be asleep until the scheduled jobs start. ...
0
votes
1answer
459 views
OS X Lion mysterious user cron job just does echo “PATH is $PATH”
OS X Lion 10.7.3.
Console view of system.log shows log entries for cron jobs defined in my user crontab as expected. Follow this link to view a copy of my user crontab if you want.
I inspected ...
2
votes
4answers
445 views
cron is failing to run my AppleScript
I have the following code in a text file (myfile.applescript):
#! /usr/bin/osascript
tell application "Google Chrome" to quit
I would like Chrome to shut down each night at 9:15PM, so I added the ...
0
votes
0answers
24 views
Launch program after inactivity [duplicate]
Possible Duplicate:
How can I automatically launch an application whenever the Mac goes idle?
I'd like to launch an AppleScript/ App after 30 minutes of system inactivity. e.g. no cursor ...
1
vote
2answers
2k views
Where is the cron log file in Lion?
I want to troubleshoot a cron job that worked fine until a recent modification, but I can't find the cron log file, where is it?
0
votes
1answer
659 views
How to make a LaunchAgent with StartCalendarInterval
I want to start replacing crontabs with LaunchAgents. My first attempt is not working.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
3
votes
3answers
2k views
How can I execute sudo commands as a cron job?
I'm trying to execute a shell script as a cron job. The problem is that my script needs to be run as a super user. I tried it with just writing sudo infront of the command in my crontab file, but it ...
3
votes
1answer
250 views
What is the difference between cron and lauchd?
What is the difference between cron and lauchd? I have always used cron, but I have recently heard that launchd is better. Why? In what ways is cron better? In what ways is launchd better?
8
votes
3answers
3k views
ssh-under-cron stops working in OS X 10.7 Lion
Just upgraded from Snow Leopard to Lion, and my cron jobs that use ssh have stopped working. It appears that ssh-agent is no longer functioning as expected.
Here's a bowdlerized version of my ...