[olug] kill process question

Daniel Linder dan at linder.org
Fri Aug 26 15:41:04 UTC 2005



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Fri, August 26, 2005 10:35, Sean Kelly wrote:

> Why not just run it with `exec`?

> 

>   g4:~ smkelly$ exec ls

> 

> That will run `ls` and then quit the shell. Well, technically `ls`
is

> replacing the shell and thus when `ls` exits there is nothing left

> controlling the terminal.



This will work in most cases, but if he is doing a "tail -f
/var/tmp/messages" then that window will stay open forever since the
tail -f never dies.



Dan



- - - - -

"Wait for that wisest of all counselors, time." -- Pericles

"I do not fear computer, I fear the lack of them." -- Isaac
Asimov

GPG fingerprint:6FFD DB94 7B96 0FD8 EADF  2EE0 B2B0 CC47 4FDE 9B68

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDDzgQsrDMR0/em2gRApIVAJ0eJ84kYUw9EnACJ5X5JlEPxLu6vwCbBBWB
YAPZdQ6e17FkZRzOsBt43Q0=
=V3Y9
-----END PGP SIGNATURE-----


More information about the OLUG mailing list