finished jobs

This commit is contained in:
ronny abraham 2025-06-17 06:06:01 +03:00
parent d394d265f9
commit 7ad3cb9fcb
2 changed files with 30 additions and 3 deletions

@ -1 +1 @@
Subproject commit 9a1a53af49c8a887dd129e9ade15f7b49cae1a13
Subproject commit 24ca6fb8b83b4c91e556cae3ce6f56a49ae1ccc5

View file

@ -10,7 +10,7 @@
- [[https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J][Playlist: Missing Semester]]
- [[https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbVVJc2RzZ25nMmlrVW5zVGRsTS1fX2ladmRPQXxBQ3Jtc0ttWjQ5Ujcyd19TekNncTZGNEp1eDc3RWhzTzhvMW9oSTFoUl9JbGt1Mi0yU3FLc00wVUx1UXNJdFQxTjBjMWphdUZxNnU1WUYzTmFqd3RRemNLUDBJMlZkV3B0SnB4RVhpaUhvWWtnc1RISW1WVzdYWQ&q=https%3A%2F%2Fmissing.csail.mit.edu%2F2020%2Fcommand-line%2F&v=e8BO_dYxk5c][class notes]]
- Curr: https://youtu.be/e8BO_dYxk5c?si=G0txrxbY4pmEy04y&t=510
- Curr: https://youtu.be/e8BO_dYxk5c?si=6klAbSninuA4qcGy&t=67
*** timestamps
:PROPERTIES:
@ -22,7 +22,7 @@
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=138s][02:18 - Job Control]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=227s][03:47 - Signal Interrupts]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=360s][06:00 - Python Program]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=672s][11:12 - The Kill Command]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=672s][11:12 - The Kill Command]] *current*
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=881s][14:41 - Terminal Multiplexer]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1112s][18:32 - The Key Bindings]]
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1536s][25:00 - Dot Files]]
@ -75,3 +75,30 @@ signal.signal(signal.SIGINT, handler)
- the above would catch a Ctrl-C and run it through handler
- you use this by catching a Ctrl-C and running any saves or cleanup before exiting
** nohup and jobs
- allows for a process to continue livign when the terminal is killed
*** example
- sleep put the process to sleep
- '&' puts the process in the background
- wont take over the process
#+BEGIN_SRC bash
nohup sleep 2000 & python somprog.py
#+END_SRC
*** jobs
- ~jobs~
will show the suspended and running processes in background
- how to restart a suspended process
- type 'jobs' to see what there is in this terminal
- the find the jobs number, ie [1] or [2]
- use the 'bg' command
#+BEGIN_SRC bash
bg %1
#+END_src
** kill command