View Single Post
Posts: 82 | Thanked: 10 times | Joined on Feb 2010
#290
A question:

Working with the "Enable/disable Wi-Fi script" with a beacon, I can see that:
- with the echo "" at the end, there is no exit status passed to the QBW, so the image is always the same (exit 0).
- without the echo "", there is the proper exist status (0 or 2), with the background color of the icon correctly shown. However, I also see all the text output in the screen.

My question, how could I hide the output text? I am only interested in the exit code, not in the text.

I imagine I can use awk, but I think it is not too elegant. Is there something I am missing here??

Thx