cd /scratchbox/users/$(whoami)/targets/coronado-simulator/ wget http://test.webvm.net/WebCommander.wgt telnet localhost 1201 cd / wrtc -i webc /WebCommander.wgt test $? -eq 0 && echo Test passes || echo Test fail
Tip: echo $? prints the return code and under Linux a successful code is 0.