I am having an issue with a restarting process.
i currently an running Raspbian Stretch on a Pi 3b+
VLC is under default settings currently as everything i need is being executed through cmd line bash script
i have a few scripts and i am using crontab to automate the transitions.
~/Scripts/script.sh
the script in question that i am having an issue with is a script that downloads new FTP files every 4 hours based on crontab line
Code: Select all
* */4 * * * /home/pi/Scripts/SupplementalFTP.sh
Everything executes properly all the way through to the end where i have an if statement using the time of day to pick the proper script to run.
this statement on the THEN and the ELSE both kills VLC using "SUDO PKILL -9 VLC"
then echos a statement into a logfile. then executes the following cmds depending on timeframe
"
Code: Select all
cvlc --loop --fullscreen /home/pi/Desktop/From_FTP/Morning/*
or
"
Code: Select all
cvlc --loop --fullscreen /home/pi/Desktop/From_FTP/Afternoon/*
NOW,
My issue is once it kills VLC and that does appear to work,
VLC is never relaunched and my log files
give me an error
Code: Select all
"vlc media player 3.0.6 Vetinari
Command line interface initialized type 'help' for help
> Shutting down
"
*NOTE: running all scripts manually executes all with no issues*
Apologies i cannot upload all of the script contents due to confidentiality clause at this time