detect , if devc-ser8250 is running via shell script ________________________________________________________________________
Applicable Environment
________________________________________________________________________
Topic : How to detect if devc-ser8250 is running using a shell scriptSDP : 6.4.1Target : Any supported target________________________________________________________________________
Recommendation
________________________________________________________________________
/root# cat isrunning
#!/bin/sh
STRING1=$(pidin -pdevc-ser8250|grep devc)
if test "X$STRING1" != "X"
then
echo "devc-ser8250 is running";
else
echo "NOT RUNNING";
fi
/root#
/root# slay devc-ser8250
/root# pidin -pdevc-ser8250|grep devc
/root# ./isrunning
NOT RUNNING
/root# devc-ser8250
/root# pidin -pdevc-ser8250|grep devc
359018510 1 sbin/devc-ser8250 24r RECEIVE 1
/root# ./isrunning
devc-ser8250 is running
/root#
________________________________________________________________________
NOTE :
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns.________________________________________________________________________
Please contact us with your questions or concerns.