The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
78 views

How can I set the default browser depending on time of day?

I have a MacBook Pro from work. To keep my browsing history separate, I use 2 different browsers. (Chrome = Work, Safari = Fun) I want to make my default browswer Chrome while at work (9 am to 6pm), ...
2
votes
0answers
60 views

OSX Server: _www user emailing itself every minute

I'm new to OSX Server, and this has me stumped. For some reason _www user is emailing itself every minute. I've tried to restrict it in postfix config, both sending & receiving, i've removed ...
3
votes
2answers
308 views

How to run a cron job each time the previous execution has finished?

I would like to run a Python script each time it finishes and I think I can do this with cron but I am not sure how to do it. The idea is each time the Python scripts ends, it will have to run again ...
1
vote
1answer
252 views

Cron job keeps running, not in any crontabs

Some time ago I set up a cron job that would run a shell script to update my dynamic DNS. I've since done the proper Mac thing and switched over to launchd to handle that job and any other scheduled ...
2
votes
1answer
37 views

How Can I Log Crontab File Writes

I'm looking for a way to log crontab file writes. A friend of mine pranked me, and did something that occasionally adds */5 * * * * say "deranged" "The current time is `date`" I haven't been able to ...
1
vote
1answer
73 views

Cron configuration on Mavericks

How can I configure cron to send a local email only to the crontab owner with the cron job output. This worked with Lion, could check the cron emails by just running mail in the terminal so I don't ...
1
vote
1answer
130 views

AppleScript working until placed in cron; causing Chrome to go unresponsive

Good afternoon. Question: I have a simple apple script telling Google Chrome to open, go to a URL, and enter presentation mode... tell application "Google Chrome" activate make new window ...
1
vote
0answers
70 views

How daylight saving changes are handled in launchd to make sure it execute the the jobs as scheduled through plist?

Since August 2013, I am using Mac Mini with OS X version 10.8.2 as my web server (MAMP stack). I have a few launchd scheduled jobs scheduled through plist. Everything was working fine until Nov 3, ...
1
vote
1answer
90 views

How do I setup a cron job on OSX to launch a website in safari every 4 hours?

How do I setup a cron job on OSX to launch a website in safari every 4 hours? I'm looking to have it open on top of every window. It's basically a reminder for staff.
2
votes
2answers
4k views

Cron script not executing on Mavericks

I have configured a user crontab file as follows: */2 * * * * /Users/[my user]/Dropbox/htdocs/auto-update.sh But it won't execute. I waited for, like, 10-15 minutes. Why? Command auto-update.sh ...
1
vote
1answer
68 views

emulate Linux's `last -x` on Mac OS X

I'm currently trying to get a missing cronjob runner script thing to work, but it was written for Arch Linux, which is pretty different from Mac OS X, and one of the things that it tries to do is run ...
4
votes
2answers
1k views

What is the difference among the various event schedulers for OS X / Darwin?

I'm confused about the differences among the three (that I know of) tools for scheduling running of code on OS X / Darwin: cron launchcd pmset I understand that cron is largely deprecated, but it ...
2
votes
0answers
278 views

MacBook Pro with lid closed 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 OS X Lion 10.7.5 is usually turned off at this time of the night, so I'm setting Energy Saver's scheduled wake up ...
0
votes
1answer
56 views

Scheduling cronjobs at specified time

I have scheduled some jobs in crontab which are to be run one by one, at some specific time. My script for crontab is : 15 10 * * * /Users/sri/files/BatchFF.sh 45 11 * * * /Users/sri/files/BatchGC.sh ...
1
vote
1answer
315 views

Does LaunchAgent prevent repetitive execution of jobs?

I want to automate the execution of a long-running job. It should be launched once per day but only if the prior job isn't still running. Can I accomplish this with launchd and how?
2
votes
1answer
235 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
129 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
300 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
146 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
265 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 ...
3
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
720 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 ...
12
votes
3answers
3k 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
589 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
943 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 ...
2
votes
3answers
7k 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?
1
vote
1answer
1k 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
4k 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 ...
4
votes
1answer
294 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?
9
votes
3answers
4k 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 ...