[Live-devel] Recording video stream using openRTSP in cron do not work
Ross Finlayson
finlayson at live555.com
Fri Jan 12 10:28:48 PST 2018
> openRTSP -4 -I -d 300 rtsp://10.0.0.2 > /media/video4.mp4
>
> When I run this in console by ./name.sh it works but when I added it into crontab it does not work. What should I do
Because your command works OK when you type it into a console, this is really a question about using “crontab” rather than a question about our software.
>From “man 5 crontab”:
Several environment variables are set up automatically by the cron(8)
daemon. SHELL is set to /bin/sh, PATH is set to /usr/bin:/bin, and
LOGNAME and HOME are set from the /etc/passwd line of the crontab's
owner. HOME, PATH and SHELL may be overridden by settings in the
crontab; LOGNAME may not.
The problem might simply be that “openRTSP” is not in PATH (/usr/bin or /bin)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list