• [^] # Re: script pour openvpn dual VPN + SSH

    Posté par . En réponse au message script lancement openvpn. Évalué à 2.

    Oki merci, il manquait un point

    Je ne comprends pas bien ce que tu veux faire. Pourquoi pkill -c (--count) ??

    if [ $(pkill -c -f "autossh.*$UserRemoteForSshTunneling@$hostVPN") -gt 0 ]; then
     vpnNotification "SshStop" $hostVPN
    fi
    

    M'en servir pour afficher ou non un message :)

    Donation Bitcoin : 1N8QGrhJGWdZNQNSspm3rSGjtXaXv9Ngat