GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — alx-system_engineering-devops/0x05-processes_and_signals at main · ZekeTheCoder/alx-system_engineering-devops

Expand file tree

/

0x05-processes_and_signals

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

0x05-processes_and_signals

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
0-what-is-my-pid
0-what-is-my-pid
 
 
1-list_your_processes
1-list_your_processes
 
 
100-process_and_pid_file
100-process_and_pid_file
 
 
101-manage_my_process
101-manage_my_process
 
 
102-zombie.c
102-zombie.c
 
 
2-show_your_bash_pid
2-show_your_bash_pid
 
 
3-show_your_bash_pid_made_easy
3-show_your_bash_pid_made_easy
 
 
4-to_infinity_and_beyond
4-to_infinity_and_beyond
 
 
5-dont_stop_me_now
5-dont_stop_me_now
 
 
6-stop_me_if_you_can
6-stop_me_if_you_can
 
 
67-stop_me_if_you_can
67-stop_me_if_you_can
 
 
7-highlander
7-highlander
 
 
8-beheaded_process
8-beheaded_process
 
 
README.md
README.md
 
 
manage_my_process
manage_my_process
 
 
zombie
zombie
 
 

README.md

Outline

0x05-processes_and_signals

Mandatory(9)

  1. File: 0-what-is-my-pid - Write a Bash script that displays its own PID.
  2. File: 1-list_your_processes - Write a Bash script that displays a list of currently running processes
  3. File: 2-show_your_bash_pid - write a Bash script that displays lines containing the bash word, thus allowing you to easily get the PID of your Bash process.
  4. File: 3-show_your_bash_pid_made_easy - Write a Bash script that displays the PID, along with the process name, of processes whose name contain the word bash.
  5. File: 4-to_infinity_and_beyond - Write a Bash script that displays To infinity and beyond indefinitely.
  6. File: 5-dont_stop_me_now - Write a Bash script that stops 4-to_infinity_and_beyond process using kill.
  7. File: 6-stop_me_if_you_can - Write a Bash script that stops 4-to_infinity_and_beyond process.
  8. File: 7-highlander - Write a Bash script that displays:
  • To infinity and beyond indefinitely
  • With a sleep 2 in between each iteration
  • I am invincible!!! when receiving a SIGTERM signal
  1. File: 8-beheaded_process - Write a Bash script that kills the process 7-highlander.

Advanced(3)

  1. File: 100-process_and_pid_file - Write a Bash script that:
  • Creates the file /var/run/myscript.pid containing its PID
  • Displays To infinity and beyond indefinitely
  • Displays I hate the kill command when receiving a SIGTERM signal
  • Displays Y U no love me?! when receiving a SIGINT signal
  • Deletes the file /var/run/myscript.pid and terminates itself when receiving a SIGQUIT or SIGTERM signal
  1. File: 101-manage_my_process, manage_my_process -
  • Write a manage_my_process Bash script that:
  • Indefinitely writes I am alive! to the file /tmp/my_process
  • In between every I am alive! message, the program should pause for 2 seconds
  • Write Bash (init) script 101-manage_my_process that manages manage_my_process. (both files need to be pushed to git)
  1. File: 102-zombie.c - Write a C program that creates 5 zombie processes.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.