delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/18/12:58:24

From: DKhosla AT Compaq DOT com (Khosla, Deepak)
Subject: RE: ps, test, /dev/null questions
18 Sep 1997 12:58:24 -0700 :
Message-ID: <c=US%a=_%p=COMPAQ%l=EXCHOU-CA0201-970918190656Z-9852.cygnus.gnu-win32@exchou-conn02.im.hou.compaq.com>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

Thanks for all the ideas. I tried a few:
-	ps -eAf or any other option does not work. I guess as someone 
explained, you can only see cygnus processes - not a good port IMHO. 
Also pview is a grpahical utility AND you have to have the reosurce 
kit! Anyway, if you have the resource kit, you can use the TLIST 
command.
-	Nul: works on NT, I'm not sure why, but if it is a intentional 
feature and it plans on staying, it would be a good idea to document 
it.
-	Sending anything to /dev/null does create a file that size (not 
good), however if you input from it, you don't get anything (strange 
but good)
-	test -w ./DIR/. does just the same - returns false when it 
shouldn't

Regards

Deepak Khosla
281-514-9234
Deepak DOT Khosla AT compaq DOT com


-----Original Message-----
From:	jeffdbREMOVETHIS AT netzone DOT com 
[SMTP:jeffdbREMOVETHIS AT netzone DOT com]
Sent:	Wednesday, September 17, 1997 11:44 PM
To:	Khosla, Deepak; gnu-win32 AT cygnus DOT com
Subject:	Re: ps, test, /dev/null questions

use pview (NT resource kit)
pview95 (Platform SDK sample applications)
wintop (95 only? MS kerneltoys)

cygnus ps only shows procs for cygnus processes. (reasonable I think 
:).

/dev/null exists only in the mind of the cygwin.dll (and not always 
there)

try diff -ubB /dev/null file.c (use echo|diff -ubB - file.c or diff 
-urBbN ../emptydir . )

..\\NUL (./NUL) exists in every directory on FAT VFAT or NTFS
(it's a system device however it's not recognized by cygwin.dll)
(see any good dos book whoops I mean dosshell95/NT, er win32? book :)

try test -w ./DIR/. && echo itshere  (the ending slash messes up stat 
I think)

On Wed, 17 Sep 1997 13:36:33 -0500, you wrote:

>Hi,
>
>Can anyone answer these for me - I've looked through the docs but no 
>man on ps :-(
>
>1)	ps -ef does not return all the jobs on the system. Is there a way 
I
>can look at all the jobs and not just the children of my session?
>2)	test -w Dir returns FALSE even though I can write to the directory 
>DIR
>3)	I have found through some emails that people use nul: as the
>equivalent of /dev/null (in Unix). Is that accurate and corect? Is
>that dcumented anywhere?
>
>Regards
>
>Deepak Khosla
>281-514-9234
>Deepak DOT Khosla AT compaq DOT com
>
>
>-
>For help on using this list (especially unsubscribing), send a 
message to
>"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>

(jeffdbREMOVETHIS AT netzone DOT com)
delete REMOVETHIS from the above to reply
         Mikey

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019