ericwq / aprilsh

remote shell support intermittent or mobile network.
MIT License
5 stars 0 forks source link

hide child process parameter from ps command #59

Closed ericwq closed 8 months ago

ericwq commented 8 months ago

verified.

ide@openrc-nvide:~/develop/aprilsh $ ps
PID   USER     TIME  COMMAND
    1 root      0:00 /sbin/init
  164 utmp      0:00 s6-ipcserverd -- utmps-wtmpd btmp
  192 root      0:01 /usr/sbin/rsyslogd -i /run/rsyslog.pid -f /etc/rsyslog.conf
  232 root      0:00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
  259 utmp      0:00 s6-ipcserverd -- utmps-utmpd
  288 utmp      0:00 s6-ipcserverd -- utmps-wtmpd wtmp
  342 root      4:41 sshd: root@pts/1
  344 root      0:01 -ash
58303 root      0:00 sshd: ide [priv]
58305 ide       0:06 sshd: ide@pts/4
58308 ide       0:00 -ash
58852 root      0:00 sshd: ide [priv]
58854 ide       0:00 sshd: ide@pts/2
58857 ide       0:00 -ash
60192 root      1h18 /usr/bin/apshd -source
60205 utmp      0:00 utmps-utmpd
60342 root      0:34 /usr/bin/apshd -child
60358 ide       0:00 -ash
60372 ide       0:00 ps