Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I get to the seat where a process is running?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trammygombez
n00b
n00b


Joined: 12 May 2023
Posts: 1

PostPosted: Fri May 12, 2023 9:15 am    Post subject: How do I get to the seat where a process is running? Reply with quote

Hi everyone,

My name is Tammy Gombez. I am having a small issue with this. Given a process P with pid i, I want to know which seat is running it. Is there a way to use ps + pids to find out which seat is connected to the terminal running it? And I am currently using my [url=https​://www.lenovo.com/gb/en/d/convertible-2-in-1-laptops/]2-in-1 laptop[/url].

Anyone have suggestions for this?

Thanks in advance!
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 374

PostPosted: Fri May 12, 2023 9:31 am    Post subject: Reply with quote

Something like
Code:
ps -p 1 -O seat
?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Fri May 12, 2023 2:53 pm    Post subject: Reply with quote

This appears to be a duplicate of getting the seat where a process is running. Given the exact duplication of the key question, the gratuitous introduction, and the gratuitous link at the end, it seems likely to be a precursor to a spam post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum