deezer-downloader
deezer-downloader copied to clipboard
Script linux to launch the webclient when the server is available
#!/bin/bash HOST=127.0.0.1 PORT=5000 cmd=deezer-downloader ini=config.ini webclient=firefox basen=$(dirname $0) cd $basen [ -f "$ini" ] && nohup $cmd -c $ini &
echo "waiting for the port $PORT to be opened ...."
while ! nc -z "$HOST" "$PORT"; do sleep 1 printf "." done echo echo "The port $PORT is opened .Launching $webclient..." nohup $webclient "http://$HOST:$PORT" &
Also a way to kill deezer-downloader killall deezer-downloader