ps, test, /dev/null questions
Khosla, Deepak
DKhosla@Compaq.com
Thu Sep 18 12:23:00 GMT 1997
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.Khosla@compaq.com
-----Original Message-----
From: jeffdbREMOVETHIS@netzone.com
[SMTP:jeffdbREMOVETHIS@netzone.com]
Sent: Wednesday, September 17, 1997 11:44 PM
To: Khosla, Deepak; gnu-win32@cygnus.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 1997年9月17日 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.Khosla@compaq.com
>>>-
>For help on using this list (especially unsubscribing), send a
message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
(jeffdbREMOVETHIS@netzone.com)
delete REMOVETHIS from the above to reply
Mikey
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list