Type following in a shell to see if miami port really exists:
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