E
emekadavid
Guest
Please can anyone help explain what this means?
When I entered the command exit on my user terminal, I got the following report:
There are no stopped jobs.
I then ran the jobs command. It gave me this listing.
The bells and bells_copy are scripts which I wrote. some were stopped with Ctrl-Z while others were allowed to run normally.
timeout is a command that is executed from within a function in both scripts and at Ctrl-Z, the timeout command is killed using "killall timeout". Can anyone explain why the exit command refuses to exit the terminal?
I tried killing the processes individually using their <pid>s but ps gives the same report as jobs i.e no change.
How do i go about trashing the terminal successfully with exit?
tnx
When I entered the command exit on my user terminal, I got the following report:
Code:
$ exit
exit
I then ran the jobs command. It gave me this listing.
Code:
[1] Stopped ./bells
[2] Stopped ./bells
[3] Stopped ./bells
[4] Stopped ./bells
[5] Stopped ./bells
[6] Stopped ./bells
[7] Stopped ./bells
[8] Stopped ./bells_copy
[9]- Stopped ./bells_copy
[10]+ Stopped ./bells_copy
And when I ran the ps command I received this other listing.
PID TTY TIME CMD
1950 pts/1 00:00:00 bash
2110 pts/1 00:00:00 bells
2111 pts/1 00:00:00 timeout <defunct>
2113 pts/1 00:00:00 bells
2114 pts/1 00:00:00 timeout <defunct>
2143 pts/1 00:00:00 bells
2144 pts/1 00:00:00 timeout <defunct>
2186 pts/1 00:00:00 bells
2187 pts/1 00:00:00 timeout <defunct>
2193 pts/1 00:00:00 bells
2194 pts/1 00:00:00 timeout <defunct>
2208 pts/1 00:00:00 bells
2209 pts/1 00:00:00 timeout <defunct>
2214 pts/1 00:00:00 bells
2215 pts/1 00:00:00 timeout <defunct>
10947 pts/1 00:00:00 bells_copy
10951 pts/1 00:00:00 bells_copy
10962 pts/1 00:00:00 bells_copy
11067 pts/1 00:00:00 ps
timeout is a command that is executed from within a function in both scripts and at Ctrl-Z, the timeout command is killed using "killall timeout". Can anyone explain why the exit command refuses to exit the terminal?
I tried killing the processes individually using their <pid>s but ps gives the same report as jobs i.e no change.
How do i go about trashing the terminal successfully with exit?
tnx