"wicd-cli -y -d" showing wired status
Asked by
Haydn Haines
Hi All,
I'm trying to write a program to check Wifi status using wicd and check the exit code is "0" to make sure the command has run OK, however I can't seem to find a command that works as expected when I'm disconnected from Wifi:
"wicd-cli -d -y": Fine when connected, but when disconnected returns "Invalid wireless network identifier" and returns an exit code of 1.
"wicd-cli -d -y -n 0": Returns the last known good status of the Wifi network (i.e: including signal quality) even if disconnected.
wicd-cli -i -y": Tells me I'm connected via "wired" even when connected to wifi, basically the -y is ignored.
Is there no way for wicd-cli to return a "We're not connected to Wifi" message "successfully" (i.e: exit code 0)?
Thanks,
Haydn.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- wicd Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.