Linux View the detailed process startup time and record the process startup PID


1. Linux to view the detailed time when the process starts to execute

ps -p PID -o lstart



2. Record the process startup ID

# !/bin/sh

SUNNY_LOG=/home/anicloud/projects/sunny/sunny/
cd $SUNNY_LOG

nohup mvn tomcat7:run > $SUNNY_LOG/sunny.log &
echo $! > $SUNNY_LOG/sunny.pid

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327038909&siteId=291194637