mujtaba1747 / git-autocommit

A bash script to automate pushing changes to github
GNU General Public License v3.0
30 stars 8 forks source link

Automation of Killing the script #1

Closed mujtaba1747 closed 2 years ago

mujtaba1747 commented 3 years ago

If one launches the script using ./watch.sh & It runs in the background, even after the terminal session that launched it is closed.

To stop the script, currently the solution is to useps aux | grep "watch.sh" and ps aux | grep "inotify" and then killing all of them using : kill PID_of_process Or alternatively, to stop it we can restart of log out but that's not fun.

There could be another way to stop the script, possibly using awk and sedalong with ps and grep.

Possibly, a second script can be written to terminate watch.sh sucessfully. Anyone can take up this issue.

mujtaba1747 commented 2 years ago

Solved by @nachiketkanore !