I can see two possible ways offhand, neither of which I have tested. 

1. Rather than watching stdout, check for prime.spl or whatever the
spool file is named existing and having a size > 0, then spawn
pppd. This is a simpler script, but you'll need to adjust the retry
interval so that it contacts the server before the ppp link idles out.

2. Use diald, or a similar demand-dialing daemon and do nothing, it
will automatically connect whenever you use any network
socket. Beware, however, that demand-dialed analog connections usually
take so long to connect that the system call will probably time out
the first try. Again, the solution is to keep a relatively small retry
interval in mprime.

>Hi, I have a question to the linux/mprime experts:
[...]

>Eventually, I got that to work. My question is whether there is any way
>to bring down/up the ppp0 interface whenever mprime needs to contact
>PrimeNet server automatically?
>
>The only way I can think of is having a script monitor the optional
>STDOUT of mprime and then checking whether it needs to contact the
>server.
>
>If there is a better solution, please point me to it.

________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm

Reply via email to