How to script at job creation?

Bo Berglund bo.berglund at gmail.com
Fri Dec 11 10:13:16 UTC 2020


On Fri, 11 Dec 2020 08:29:33 +0100, Volker Wysk <post at volker-wysk.de>
wrote:

>Am Freitag, den 11.12.2020, 08:12 +0100 schrieb Bo Berglund:
>> #!/bin/bash
>> NEXTDAY=`date --date="tomorrow" +%Y-%m-%d`
>> CMDTIM1="echo \"timeout --signal=2 65m getmsnbcstream ${NEXTDAY}_"
>> #Now create the at jobs
>> CMDAT="${CMDTIM1}inp19.mp4\" | at 00:58 tomorrow"
>> $CMDAT
>> exit
>
>Aren't there two closing quotes missing, in lines 3 and 5 ...?
>

No, these are 2 quotes that are explicitly escaped using \" because
they need to get to the output string.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list