Operating System - HP-UX
1850497 Members
2555 Online
104054 Solutions
New Discussion

running script in backgound??

 
SOLVED
Go to solution
someone_4
Honored Contributor

running script in backgound??

I am sure this has been asked and answered before but I have thisscript.scr I know it takes it a long time to run. How do i run this script and make it so it runs it in the background and give me a command line after i execute it in stead or no promt cuss the script is running ..
thanks
2 REPLIES 2
melvyn burnard
Honored Contributor
Solution

Re: running script in backgound??

put the & character after the command line:

mycommand &
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Eileen Millen
Trusted Contributor

Re: running script in backgound??

If you want to logout and have the script keep running, you can use nohup.

nohup script &