Seite 1 von 1

screen web interface

Verfasst: Mi 15. Nov 2023, 13:40
von smug_cat
hay
ich hab versucht das terminal Fenster in screen zu packen aber iwie klappt es nicht
website startet aber screen sagt
There is no screen to be resumed matching mfweb.

cron_mfweb.sh
#!/bin/bash
mfbotdir="/home/mfbot/webinterface"
binname="MainProgram.py"
cd $mfbotdir

process=` ps auxwww | grep 'MainProgram.py' | grep -v grep | awk '{ print $2 }'`
if [[ -z $process ]]; then
python3 MainProgram.py -a http://127.0.0.1:4511/ --remoteU=root --remoteP=orangepi --webU=mfbot --webP=mfbot

echo `date` started mfweb
fi



mfweb.sh

#!/bin/py
screen -mdS MainProgram.py