OK, I have a shell application running on Ubuntu 11.04 which must use a Verizon Wireless Modem to stay connected. I can't figure out how to invoke this application from the shell, but can do so from the gui.
If the PC looses power, Ubuntu must wake up, log in, start the application in it's last know state, and connect back to the internet. Since the application is REMOTE, I need the PC to reestablish the wireless connection whenever it drops said connection, and keep trying until it does.
I have set the ppp0 as the default connection in network manager. However, the only way I have found to start the connection after disconnect is by killing networkmanager, then network-manager reconnects automatically.
ppp0 Link encap:Point-to-Point Protocol inet addr:XXX.XXX.XXX.XXX P-t-P:XXX.XXX.XXX.XXX Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:211 errors:0 dropped:0 overruns:0 frame:0 TX packets:217 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:26851 (26.8 KB) TX bytes:18801 (18.8 KB)
The process seems to change every time I run it. The NetworkManager seems to autoincrement the number after .../PPP. I want to be able to run this connection with all of it's functionality from the shell. :
/usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 5 lcp-echo-interval 30 ipparam /org/freedesktop/NetworkManager/PPP/3 plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so
Bus 002 Device 006: ID 1410:6000 Novatel Wireless
Can someone provide me with the shell command I can use to invoke the above connection without killing network manager each time?