Well I am going to start with .. What are you talking about?
Quote:
First, 35th field of "ls -l /proc/" is column with folder names.
|
The 35th field? This is based on what as a delimiter? Here is a snippet of 'ls -l /proc' for me:
Code:
dr-xr-xr-x 4 root root 0 2010-12-12 23:21 tty
-r--r--r-- 1 root root 0 2010-12-12 23:21 uptime
-r--r--r-- 1 root root 0 2010-12-12 23:21 version
-r--r--r-- 1 root root 0 2010-12-12 23:21 version_signature
-r-------- 1 root root 0 2010-12-12 23:21 vmallocinfo
-r--r--r-- 1 root root 0 2010-12-12 23:21 vmstat
-r--r--r-- 1 root root 0 2010-12-12 23:21 zoneinfo
I think you would agree that it will be difficult to find 35 fields in this??
Quote:
So, the following snippet returns $PID (if found):
|
How would this ever return a PID?? Last time I looked, ls has no idea about PIDS. And why would it need to if it is simply listing objects?
As far as I can tell, none of what you have shown works.