Re: Session ID

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 2/6/24 17:50, ToddAndMargo via perl6-users wrote:
> Hi All
> 
> Windows 10 and 11
> 
> Does Raku have a system call that will tell
> me my "session ID"?
> 
> Many thanks,
> -T
> 

So far what I have come up with is a system call to "wmic":

 >raku -e "sleep 14"

 >wmic process where "name='raku.exe'" get ProcessID,SessionID,CommandLine
CommandLine          ProcessId  SessionId
raku  -e "sleep 14"  5020       1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.