3 #Change the $PPP variable to point to where pppob is installed.
4 $PPP="/usr/local/sbin/pppob -vP xxxxx -l /tmp/modemtest.log"
10 @connectionHandle = IO.popen( $PPP,"w+" )
17 @connectionHandle.write( data )
22 return nil if @connectionHandle.closed?
24 while input = IO.select([@connectionHandle],nil,nil,1)
25 c = @connectionHandle.getc
26 @ioBuffer << c if c != nil
27 return if ! @connecting
30 break if timeout >= 9000
85 puts("Testing the Blackberry Modem by sending AT commands through pppob.")
86 printf("Starting %s: %s",$PPP,modem.read())
87 puts("--------------------------------------------")
91 printf("Command: %s \nResult: %s",c,modem.read())
92 puts("--------------------------------------------")