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

Add remote server usage content #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Sergiu121
Copy link
Collaborator

No description provided.

@Sergiu121
Copy link
Collaborator Author

Copy link
Collaborator

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Îmi place. E to the point.

chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved

Detașarea de la o sesiune tmux
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dacă avem o aplicație care rulează mult timp, cum ar fi un ``find``, și conexiunea SSH se întrerupe, se va întrerupe și execuția comenzii ``find``.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/un find/o căutare intensă în sistemul de fișiere folosind updatedb

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de fapt, nu se va întrerupe

se va daemoniza automat; moare conexiunea, moare terminalul, procesul părinte moare (shellul), e adoptat de init

se întrerupe doar o comandă interactivă (care așteaptă input)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eu știu altfel. Moare indiferent de tipul comenzii.
Experiment:
tab 1: find / -name test
tab 2: ps -ef | grep student@pts/[0] |tr -s " " | cut -d" " -f 2 | xargs kill; ps aux | grep find
Cu toate că find mai are de rulat (la mine nu merge așa de repede), el moare.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Încearcă prin SSH. Pornește un client bittorrent. Și închide terminalul (NU shellul), adică simulează o întrerupere de rețea. Sau, mai simplu, pornește sleep 1000000.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am făcut cum ai zis tu, doar că nu am pornit un sleep ci un updatedb. Am închis terminalul, am verificat dacă updatedb rula pe VM și nu mai rula.

chapters/task-admin/usage.rst Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
@Sergiu121
Copy link
Collaborator Author

Copy link
Collaborator

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am adăugat o nouă recenzie. Arată bine.

chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
@Sergiu121
Copy link
Collaborator Author

@Sergiu121 Sergiu121 force-pushed the task-admin-usage branch 2 times, most recently from c481aec to cf63611 Compare January 10, 2021 15:57
@Sergiu121
Copy link
Collaborator Author

Copy link
Collaborator

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am adăugat o nouă recenzie.

chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
chapters/task-admin/usage.rst Outdated Show resolved Hide resolved

Scenarii de folosire a sistemului la distanță
---------------------------------------------

Vom folosi această subsecțiune ca un tutorial pentru a exemplifica un workflow pentru lucrul la distanță.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nu apare nimic aici. Vrei să adaugi ceva?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da, după laborator.

chapters/task-admin/usage.rst Outdated Show resolved Hide resolved
@razvand razvand self-requested a review September 4, 2023 14:45
Base automatically changed from task-admin to master September 11, 2023 14:24
Add section detailing the use of `tmux` to run commands on the remote
workstation.

Signed-off-by: Sergiu Weisz <[email protected]>
Co-authored-by: Razvan Deaconescu <[email protected]>
Signed-off-by: Razvan Deaconescu <[email protected]>
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.

2 participants