Jdavis wrote:
> Hello,
>   I am writing a script to help a user turn a modem
> on and off and adjust the routing tables on a
> Linux box. I am trying to call wvdial to do the dialing,
> but it does not give control back to my script. I call
> it like so
>
> if( $choice == 1){
> `wvdial`;
> print "connected";
> }

Hi.

I don't know wvdial, but it sounds to me very much like
an application that will prompt for input. If so, then
just running it from Perl will make it start and wait -
it will only fall back to Perl when it exits. If this is
the case then you have (at least) two options:
put all of the required parameters on the command
line that you issue, or open a pipe to it and send
commands that way.

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to