-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
hi, I was just curious, has anyone managed to run this from a cron tab on macos x? I seem to get stuck.
When I run the command:
/usr/local/bin/imagesnap /Users/username/Documents/Projects/Timelapse/snapshot_$(date +\%Y\%m\%d\%H\%M\%S).jpg
manually, it captures it correctly including adding the date and time to the filename.
If I run the command from within a shell script, it works as well.
But if I run the command or the shell script from a cron tab, it wouldn't work. It would omit the part between the two *s /Users/username/Documents/Projects/Timelapse/snapshot_20221220184251.jpg below and no picture is being captured:
(base) CBU-Macbook-Pro-498: $ ./capture.sh
CMIOObjectID: 0x22
Class: CMIO Stream
Name: Sample Stream
Direction: Input
Channels: 1
CMIOObjectID: 0x21
Class: CMIO Device
Name: ManyCam Virtual Webcam
Input Channels: 1
Output Channels: 0
CMIOObjectID: 0x20
Class: CMIO PlugIn
Name: com.visicom.ManyCam.VideoDevice.plugin
Capturing image from device "FaceTime HD Camera"... */Users/username/Documents/Projects/Timelapse/snapshot_20221220184251.jpg*
Any ideas how to solve this?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels