LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] What does this do?

[ILUG] What does this do?

Stephen_Reilly at dell.com Stephen_Reilly at dell.com
Thu Jul 26 17:13:16 IST 2001


>PROMPT_COMMAND='pwd>&8;kill -STOP $$'

Michael,
	It's setting the PROMPT_COMMAND system variable to the command in
the brackets. This variable alwasy contains a command to be run just before
displaying the shell. The command itself is first redirecting output from
pwd(print working directory) to a file with file descriptor 8 (open file).
After that the semi colon means execute the commands sequentially so we're
on to kill -STOP $$, $$ expands to current process which is this one ...
kill -stop will stop but NOT kill the preocess. 
	So what you have altogether is a command that runs before the shell
prompt is displayed, redirects the current directoy path to some file and
then stops itself but remains alive ... Any help ?

steve

-- 
Irish Linux Users' Group: ilug at linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell