lkml.org 
[lkml]   [1996]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Shell-Script problems

On Dec 9, 1996 18:34:37 +0000, Meino Christian Cramer wrote:
>
>
> High!
>
> I have checked the things you wrote about that silly script
> bahaviours . But -- sorry -- on my linux 2.1.13 it works well.
>

This is because we are discussing problems in 2.1.14 script execution.
Scripts now show up in the ps listing by the interpreter that is running
the script, not by the name of the script. This behavior is DIFFERENT than
the behavior of previous kernels. The behavior of ps is quite inconsistant
even between different UN*X flavors, as shown below. I personally liked
the old behavior, since it worked nicely to kill scripts with "killall
foo". I think the old behavior should be reimplemented, and a patch to
reimplement it was already posted to linux-kernel.

Linux 2.0.27:
andersee@Dillweed% ps
4335 p1 S 0:00 bash ./scum
andersee@Dillweed% ps -c
PID TT STAT TIME COMMAND
4335 p1 S 0:00 scum


Linux 2.1.14:
andersee@Dillweed% ps
PID TT STAT TIME COMMAND
279 p0 S 0:00 bash ./scum
andersee@Dillweed% ps -c
PID TT STAT TIME COMMAND
279 p0 S 0:00 bash


IRIX:
andersee@sulu% ps
PID TTY TIME COMD
819 ttyq0 0:00 scum
andersee@sulu% ps -f
UID PID PPID C STIME TTY TIME COMD
andersee 819 802 0 13:39:28 ttyq0 0:00 /bin/sh scum


HP-UX:
andersee@kansas% ps
PID TTY TIME COMMAND
7724 ttyp4 0:00 scum
andersee@kansas% ps -f
UID PID PPID C STIME TTY TIME COMMAND
andersee 7724 7642 0 12:54:25 ttyp4 0:00 scum ./scum


AIX:
andersee@gold% ps
PID TTY TIME CMD
15945 pts/1 0:00 sh ./scum
andersee@gold% ps -f
USER PID PPID C STIME TTY TIME CMD
andersee 15945 15420 0 12:55:52 pts/1 0:00 sh ./scum


-Erik

--
Erik B. Andersen Web: http://www.et.byu.edu/~andersee/
2485 South State St. email: andersee@et.byu.edu or andersee@debian.org
Springville, Ut 84663 phone: (801) 489-1231
--This message was written using 73% post-consumer electrons--

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.029 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site