View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#292
Originally Posted by petrelli View Post
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
Or just hide the results output like this:



__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras