Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Command (simulate to enter key)

Status
Not open for further replies.

hlyeoh

MIS
May 31, 2004
22
MY
Do anyone knows what is the refresh command (that simulate enter key) that can be used in shell scripts?

I have a shell script, so whenever after executing the script, I need to press ‘enter’ to get back the unixprompt … or else the system will still stay there.

 
This is the script that i have written ::
I have tried to use & to let it process in background mode, but still i need to press enter to end executing the script and go back to my unixprompt.

start_informatica(){

cd /apps/dm/informatica/repositoryserver/
pmrepserver &
sleep 20
cd /apps/dm/informatica/pc/
pmserver &

check_error $? start_informatica
}

 
I think you will find that you are actually getting a prompt back earlier, but are missing it because of output from pmserver or check_error?

You could try putting in an extra sleep 20, for example, after the check_error, and after 20 seconds your prompt should appear.

Annihilannic.
 
great idea. I put extra sleep 5 and it works now.Thanks Annihilannic :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top