tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Determining if a system is in shutdown



On Aug 29, 10:02am, marc%msys.ch@localhost (Marc Balmer) wrote:
-- Subject: Re: Determining if a system is in shutdown

| As _PATH_NOLOGIN is defined in a header file, are these constants
| somehow available to shell scripts, too?  So that they can be queried at
| run time?

I don't think so... But:

NLP="$(fgrep _PATH_NOLOGIN /usr/include/paths.h | cut -d\" -f 2)"

christos


Home | Main Index | Thread Index | Old Index