deezer-downloader icon indicating copy to clipboard operation
deezer-downloader copied to clipboard

Script linux to launch the webclient when the server is available

Open cedricam opened this issue 5 months ago • 2 comments

#!/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

cedricam avatar May 25 '25 20:05 cedricam