Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save all sessions #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

camlafit
Copy link
Contributor

A solution to save all sessions

screen -ls is restricted to current user. /var/run/screen lists all actives session on serveur/desktop.
Update scripts to retrieve informations (pid and user) from screen socket

solve #12

@camlafit camlafit changed the title WIP : Save all sessions Save all sessions Aug 27, 2024
* Search all active screen socket and save them step by step
* Use string manipulation to retrieve user and screen pid
* In some case (mainly) standard user doesn't act as root permission
* In this case we can't use su command
* We can execute directly a variable content
* input/output in this case must be explicit and can't be set in variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant