mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-03 19:47:46 +08:00
add help scripts
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
executable_filename="component_container"
|
||||
|
||||
while true; do
|
||||
pids=$(pgrep -f "${executable_filename}")
|
||||
if [ -z "$pids" ]; then
|
||||
echo "The process ${executable_filename} is not running."
|
||||
else
|
||||
for pid in $pids; do
|
||||
fd_count=$(lsof -p "${pid}" 2>/dev/null | wc -l)
|
||||
echo "File descriptor count for process ${executable_filename} (${pid}): ${fd_count}"
|
||||
done
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
Regular → Executable
Reference in New Issue
Block a user