[olug] kill process question

Craig Wolf cjwolf at mpsomaha.org
Fri Aug 26 16:11:39 UTC 2005


I have the user double-clicking an icon on the desktop of their client. 
It runs a process to do an scp from a mac client to my Linux server
asking the user for the password, copying their files over for backup
purposes, and then exiting the terminal window.  Would the exec work for
that vs the ps aux command line that I got earlier?

Craig Wolf
Linux Web Server Support
Desktop/Network Specialist
402-894-6283


>>> "Daniel Linder" <dan at linder.org> 8/26/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-----
_______________________________________________
OLUG mailing list
OLUG at olug.org 
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list