Se alguém conseguisse converter este .bh file para batch file agradecia.. Obrigado...
#!/bin/bash
# If plex is not running, don't do anything.
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`
if [ "$plex_running" -eq 1 ]; then
exit 0
fi
# Test Plex web interface. If it's dead, this'll time out in a few seconds.
curl -I -m 8 "ocalhost:32400/library/sections" > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
/usr/sbin/service plexmediaserver restart
fi
#!/bin/bash
# If plex is not running, don't do anything.
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`
if [ "$plex_running" -eq 1 ]; then
exit 0
fi
# Test Plex web interface. If it's dead, this'll time out in a few seconds.
curl -I -m 8 "ocalhost:32400/library/sections" > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
/usr/sbin/service plexmediaserver restart
fi