Well, OK, but something about scripting is different. try putting a
script command among the bashes...the forest ends before the script, so
I cannot tell that my session is being scripted. And, as I said, in
Solaris, the pstree goes all the way back to the system's root process,
the one shared by everything on the system.
[EMAIL PROTECTED]:~$ ps --forest
PID TTY TIME CMD
4911 pts/1 00:00:00 bash
6344 pts/1 00:00:00 \_ ps
[EMAIL PROTECTED]:~$ bash -l
[EMAIL PROTECTED]:~$ bash -l
[EMAIL PROTECTED]:~$ script script1
Script started, file is script1
[EMAIL PROTECTED]:~$ bash -l
[EMAIL PROTECTED]:~$ ps --forest
PID TTY TIME CMD
6390 pts/2 00:00:00 bash
6412 pts/2 00:00:00 \_ bash
6433 pts/2 00:00:00 \_ ps
[EMAIL PROTECTED]:~$ ps --version
procps version 3.2.6
[EMAIL PROTECTED]:~$
Adam Thornton wrote:
Carey Tyler Schug wrote:
Don't smoke your cigar yet.
At least on Ubuntu, which is derived from Debian, ps --forest only
shows
the tree back as far as the last shell, which comes AFTER the
script, so
it doesn't show the script process.
Mine shows me back as far as the login shell:
Last login: Mon Oct 22 08:46:58 2007 from 192.168.1.79
<adam> services:~ $ bash -l
<adam> services:~ $ bash -l
<adam> services:~ $ bash -l
<adam> services:~ $ ps --forest
PID TTY TIME CMD
32268 pts/0 00:00:00 bash
32270 pts/0 00:00:00 \_ bash
32272 pts/0 00:00:00 \_ bash
32273 pts/0 00:00:00 \_ bash
32276 pts/0 00:00:00 \_ ps
<adam> services:~ $ ps --version
procps version 3.2.1
Adam
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Carey Tyler Schug
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390