From: Cuddles <cu...@fl...> - 2005-01-23 01:46:59
|
I can do better than that... :) I can post a partly-done script showing what I mean... ------------------------------------------------------- #!/bin/bash # Network Status: ping 192.168.0.1 -w 5 -c 1 >/dev/null && s1="ok" || s1="error" ping 192.168.0.2 -w 5 -c 1 >/dev/null && s2="ok" || s2="error" ping 192.168.0.3 -w 5 -c 1 >/dev/null && s3="ok" || s3="error" ping 192.168.0.4 -w 5 -c 1 >/dev/null && s4="ok" || s4="error" ping 192.168.0.5 -w 5 -c 1 >/dev/null && s5="ok" || s5="error" ping 192.168.0.8 -w 5 -c 1 >/dev/null && s8="ok" || s8="error" if [ "$s1" = "error" ]; then sys="Zuul offline" elif [ "$s2" = "error" ]; then sys="Toadstool offline" elif [ "$s3" = "error" ]; then sys="Bessie offline" elif [ "$s4" = "error" ]; then sys="GayMer offline" elif [ "$s8" = "error" ]; then sys="Mavus offline" else sys="Ok" fi echo "Systems: $sys" exit ------------------------------------------------------- Yes, it's kludgy, but it works. :) I use a similar script to output more detailed into to /dev/tty11 on that box too. Basically, I'd like lcd4linux to read the output of the script (in this case, the "Systems: Ok" message) and display it on the lcd panel. Shouldn't be too difficult. :) Mike Michael Reinelt wrote: > Hi, > Ok, I'll try to find some time... > > Could you please open a ticket for this? > > and 2nd, could you explain in more detail what kind of information > your script collects, and how this stuff should/could be parsed by > lcd4linux? > > > bye, Michael |