General

Re: How to get umask of an existing process

 
Jose M. del Rio
Frequent Advisor

Re: How to get umask of an existing process

>>>> Yes but if you can't trust it, set it the way you want. Or at least log it.
Good point.
We have to schedule a programmed halt to install some patches and we'll check that case.

>>>> Can you use ps(1) to figure out which is the current bad case?
I don't get your point.
Dennis Handly
Acclaimed Contributor

Re: How to get umask of an existing process

>>>> Can you use ps(1) to figure out which is the current bad case?
>I don't get your point.

By looking at your process tree, can you figure out how it started? Or is it a demon, so the PPID is 1, init?
You can also add -x to get longer command lines.
Jan Zalman
Advisor

Re: How to get umask of an existing process

Here you are.
Script for 11.11, 11.23 AND 11.31 attached.
Regards
Time and loyalty cannot be bought.
JimUrsetto
Visitor

Re: How to get umask of an existing process

That script works perfectly Jan. Thanks.