Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Question about recordings in progress for a script
#1
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 || easyVdr 3.0  
VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6 
VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844
Zitieren
#2
Hi.

I can mark the thread as done with the commands of this link.

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

Code:
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 || easyVdr 3.0  
VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6 
VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste