![]() |
![]() |
![]()
Post
#1
|
|
Group: Members Posts: 103 Joined: 16-October 05 From: Maldon, Essex, England Member No.: 8,325 ![]() |
C3100 with standard Sharp ROM
Can someone give me the required commands to start a specific wireless network connection from the command line please? I want to set up a script to do it. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Group: Members Posts: 1,001 Joined: 28-April 05 From: Germany Member No.: 7,027 ![]() |
I don't know if it is possible to start a specific network connection, but you can raise the network conection selector dialog from the command line using:
qcop "QPE/Network" "connectRequest()" A script for establishing a network connection and chacking for availability of Internet could look that way (I have used that a lot for mutt etc.): CODE #! /bin/bash
TRY_IP="130.149.4.20" echo Connecting to Internet... qcop "QPE/Network" "connectRequest()" > /dev/null 2>&1 ping -c 1 "$TRY_IP" > /dev/null 2>&1 while [ $? -ne 0 ] do sleep 5 echo waiting for network... ping -c 1 "$TRY_IP" > /dev/null 2>&1 done |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 21st April 2018 - 09:38 AM |