Re: Getting Windows "MACHINE SID" without fork() & exec()?
Takeshi Nishimura via Cygwin <[email protected]> Thu, 23 Apr 2026 19:23:19 +0200
| Newsgroups | gmane.os.cygwin |
|---|---|
| Message-ID | <CALWcw=FDxArr8cRMG6T8P0ADZs6t=3sMpoZkXygNCsa2Hfn3bQ@mail.gmail.com> |
On Thu, Apr 23, 2026 at 7:14 PM William Stewart via Cygwin <[email protected]> wrote: > > On Thu, Apr 23, 2026 at 11:08 AM Takeshi Nishimura wrote: > > Does Cygwin have a secret shell variable or /proc file which contains > > the current machine's MACHINE SID, without having to resort to calling > > an external program (no fork(), no exec(), please)? > > > I'm not aware of one. What problem are you solving? Pass MACHINE SID around in a shell script. Doing that by calling powershell each time is very expensive, around 92% of the scripts whole runtime -- Internationalization&localization dev / 大阪大学 Takeshi Nishimura <[email protected]> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple