Computing.Net > Forums > Unix > Unix Shell Scripting $!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Unix Shell Scripting $!

Reply to Message Icon

Name: ShellscriptSearch
Date: April 29, 2009 at 01:38:51 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi,

Can anybody explain what is mean by WAIT=WAIT" "$!

Thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: user57
Date: April 29, 2009 at 05:21:46 Pacific
Reply:

The variable $! contains the process ID number of the last
command sent to the background, for example:
$ sleep 90 &
[1] 8856
$ kill -9 $!

WAIT=WAIT" "$!

The above statement is an example of variable assignment and equal to the value of the variable WAIT, followed by a space, followed by the value of $!


0
Reply to Message Icon

Related Posts

See More


how do i find out, hung p... Remove 'blanks' in a file...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Unix Shell Scripting $!

Unix Shell Script www.computing.net/answers/unix/unix-shell-script/3580.html

Unix shell script runing SQL files www.computing.net/answers/unix/unix-shell-script-runing-sql-files/5286.html

Unix shell script problem... www.computing.net/answers/unix/unix-shell-script-problem/6217.html