Thanks for the push to continue.  Easier to test changes. Here's the
latest.  And verified cron can start it.

!/bin/bash
stream="https://stream.revma.ihrhls.com/zc2149/hls.m3u8";
acodec="mp3"
arate="128"
mux="raw"
outfile="/home/paul/Audio/Coast-$(date '+%Y-%m-%d-%H-%M-%S').mp3"

timeout 4h vlc -I dummy $stream --no-video
--sout="#transcode{acodec=$acodec,ab=$arate,channels=2,samplerate=44100}:std{access=file,mux=$mux,dst=$outfile}"

On Fri, Dec 11, 2020 at 10:39 AM 'Michael Chaney' via NLUG <
[email protected]> wrote:

> To build on what the other two are saying:
>
> crontabs have special formats and ultimately they're going to munge
> certain characters as will the shell.  Putting a command like that in
> crontab will always be an exercise in frustration and often leads to the
> "four backslashes" issue.
>
> I'd recommend you move the command to a shell script and then run the
> shell script from crontab.  You might even leave the timeout command in the
> crontab.  But I'd definitely put the rest of it into a shell script.
>
> --
> Michael Darrin Chaney, Sr.
> [email protected]
> http://www.michaelchaney.com/
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/CAAtfUtHT%3DQordS_KJ7tMOEdUkusWJv8_2if3VqFKifG%3DSTWoLw%40mail.gmail.com
> <https://groups.google.com/d/msgid/nlug-talk/CAAtfUtHT%3DQordS_KJ7tMOEdUkusWJv8_2if3VqFKifG%3DSTWoLw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CAL9PgS15Oc4gvxtrOPh%2BZzo4RY%3DJT%3DP%2BZpfMEND7z8Q6vtarSg%40mail.gmail.com.

Reply via email to