easyVDR Kopie des easyVDR-Forums zum Nachschlagen
[SOLVED] Question about recordings in progress for a script

easyVDR - >VARforumsname - >[SOLVED] Question about recordings in progress for a script

jb  05.Dec.2016 13:52:44
Hi.

I would like to know how can I make a conditional sentence to know if there are some recording in progress. Like:

If (Recording in progress)??? then;
   do things
else
   do else things
fi


It is to prevent an unmount of an external hard disk in order to check it, when a recording is in progress (I schelule recordings in an external 5Tb hard disk).

Thanks and regards.
Javier B.
VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT ? DDR4  || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || [url=http://www.easy-vdr.de/index.php]easyVdr 3.0  
VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || [url=http://www.vdr-portal.de/board16-video-disk-recorder/board99-distributionen/board96-yavdr/]yaVdr 0.6 
VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || [url=http://vdr-m7x0.foroactivo.com.es]VDR-NG-EM 0.6 Pro - Rev 844
jb  07.Dec.2016 11:21:40
Hi.

I can mark the thread as done with the commands of [url=http://www.vdr-portal.de/board16-video-disk-recorder/board24-howtos-f-a-q-s/129900-question-about-recordings-in-progress-for-a-script/]this link.

I write you the command just in case someone is interested:

NEXT_TIMER=$(svdrpsend next | grep -hi "250" | awk '{print $3 " " $4 " " $5 " " $6 " " $7}')
NEXT_TIMER_UTC=$(date -d "$NEXT_TIMER" +%s)

Regards.
Javier B.
VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT ? DDR4  || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || [url=http://www.easy-vdr.de/index.php]easyVdr 3.0  
VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || [url=http://www.vdr-portal.de/board16-video-disk-recorder/board99-distributionen/board96-yavdr/]yaVdr 0.6 
VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || [url=http://vdr-m7x0.foroactivo.com.es]VDR-NG-EM 0.6 Pro - Rev 844