From: Gaetan l. L. <ga...@sg...> - 2002-02-12 23:17:26
|
OK, At least there is one mistake, probably your shell script habit. You can't run a direct command from a perl script. The easiest way is to replace isdnctrl dial ippp0 with system("isdnctrl dial ippp0"); And if I was you, I would put the isdnctrl path before the command like /sbin/isdnctrl . Not sure about your path. The best way to test a script like this is to run the command by itself, without misterhouse. Misterhouse is only a wrapper around perl script. copy the "system" line in a file named test.pl and then run the command "perl test.pl" it should start your network connection Send me your mh.private.ini configuration related to the network On Tue, Feb 12, 2002 at 10:36:30PM -0500, Robin Edwards wrote: > #Category=Internet > #$Id$ > > $rv_dialup = new Voice_Cmd '[Stop,Start] R_Internet'; > $rv_dialup->set_info("Start or stop the R_internet connection"); > $rv_dialup->set_authority('anyone'); > > if ( said $rv_dialup eq "Start" ) { > isdnctrl dial ippp0 > print_log "rdialup.pl: Attempting to start the network, please wait"; > speak "Attempting to start the network, please wait"; > } > > if ( said $rv_dialup eq "Stop" ) { > isdnctrl hangup ippp0 > print_log "rdialup.pl: Attempting to start the network, please wait"; > speak "Attempting to start the network, please wait"; > } > > > #$Log$ -- -- ---------------------------------------------------------------------- Gaetan Lord - FTA - ga...@sg... - SGI - Montreal, Canada pager: gae...@mo... (200 car. max) "There is no future in time traveling" ---------------------------------------------------------------------- 6:09pm up 5 days, 5:13, 13 users, load average: 0.00, 0.02, 0.00 |