View Single Post
Old 24 January 2016, 01:13   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
Type following in a shell to see if miami port really exists:
Code:
rx "say show('p')"
You can specify an interface with ISONLINE but normaly that isn`t needed. I don`t see something wrong with the script but you can use trace command to see what happens or goes wrong.

My go offline script for WHDLoad looks like this and should work. Maybe I`ve add the interface for some reason but can`t remember:

Code:
/*
 * If Miami is online it will go offline and quit.
*/

IF SHOW('P', 'MIAMI.1') THEN DO
    ADDRESS 'MIAMI.1'
    ISONLINE 'ppp0'           /* Check if online */
    IF RC THEN OFFLINE 'ppp0' /* Go offline */
    QUITFORCE                 /* Quits Miami */
END

Last edited by daxb; 24 January 2016 at 13:29. Reason: add a quote
daxb is offline  
 
Page generated in 0.10902 seconds with 11 queries