In my script i have written some messages which should come in screen while some background process is going on..
Like for example:
if i want to add 2 numbers a and b ...when the addition is going on in the background i should get "ADDING TWO NUMBERS>>PLEASE WAIT " message on the screen for few seconds...
what i did is...
used the below code in my script..but it is not printing anything on the screen. but still i'm getting proper output.
But if the messages comes in the screen then the script will look better so please help me..
Perhaps I don't understand, but If you want the message to appear while the work is being done, why run it in the background? Just display your message, do the work, then clear the screen and continue with your script. You can use the "wait" command to make your script wait until the background work is done before it continues, but it defeats the purpose of running it in the background in the first place.