Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

detect , if devc-ser8250 is running via shell script
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: How to detect if devc-ser8250 is running using a shell script
  • SDP: 6.4.1
  • Target: 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.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.