Hallo, ich habe ein kleines Script, welches per crontab ausgeführt werden soll. Wenn ich es per gnome-schedule testweise ausführen lasse, funktioniert es. Wenn es dann per crontab gestartet wird, passiert offenbar nix. Wie kann ich den Fehler finden?
Der Eintrag des cmds lautet:
/home/srb-stream/srb-tools/live_recording.sh && exit
Das Script sieht so aus:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/bash # config: record_config="/home/$USER/stream-srb/stream-log/live_recording_conf.sh" ## do not edit below this line function f_check_configfile () { if [ ! -f $record_config ] then echo "Configfile not found:" echo $record_config echo "Let's let down..." sleep 2 exit else source $record_config fi } function f_start_jack_capture () { echo "Starting Jack_Capture.." sleep 1 gnome-terminal -x jack_capture --port jamin:out_L --port jamin:out_R -d $r_duration -fn $r_filename & #jack_capture --port jamin:out_L --port jamin:out_R -d $r_duration -fn $r_filename & } echo "Starting Live-Recording..." f_check_configfile f_start_jack_capture sleep 2 echo "Deleting configfile..." rm $record_config |