Forum Moderators: coopster
I wrote PHP script, to start vpnclient:
<?php
$result = exec("ping -c 4 X.X.X.X");
if ("$result?"!= "0") {
exec("/etc/init.d/vpnclient_init restart");
}
?>
from shell as root user this script is working well.
my problem is:
howto start vpnclient via browser with this script using sudo?
kind regards
cccc
I don't use sudo [courtesan.com] myself, but it seems as though you need to have your sudoers [courtesan.com] file setup correctly first. But before going there, is this a Cisco VPN client you are starting? Why not have the client start whenever the server is started/rebooted?
Hopefully this bump will get some discussion started.