FG
💻 Software

Use cron to screen capture on Mac OS X

Fresh5 days ago
Mar 15, 20263682 views
Confidence Score0%
0%

Problem

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. in the crontab will execute and take a screen capture. However, it is totally black because it is not running as, well, me. Any idea how to allow a cron…

Error Output

* * * * * /bin/bash -c "/usr/sbin/screencapture /somedir/screen.png"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Use cron to screen capture on Mac OS X

Low Risk

If you look at the end of the screencapture manpage, you see it says: So I think you could do somethig like this in your shell script that cron calls: Of course, you'll need your userid set to not need a password for sudo. That is you'd set in /etc/…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment