The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pseudo-terminal will not be allocated because stdin is not a terminal. Shivdatta UNIX for Advanced & Expert Users 1 3 Weeks Ago 07:29 AM
Control process from different terminal (over SSH) rakeshou UNIX for Advanced & Expert Users 3 12-19-2007 04:48 PM
Closing a thread linuxpenguin Post Here to Contact Site Administrators and Moderators 3 11-21-2003 04:37 PM
Start process in shellscript at other terminal benschell Shell Programming and Scripting 4 09-02-2002 04:24 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 11:32 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 18
Unhappy how to run a process after closing the terminal

i want to execute a shell script even if the terminal is closed. how to do?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-03-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,453
Code:
man nohup
<message too short>
Reply With Quote
  #3 (permalink)  
Old 09-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 45
execute it as background process

script&
Reply With Quote
  #4 (permalink)  
Old 09-03-2007
Registered User
 

Join Date: Feb 2007
Posts: 4
Executing the process from the background using the ampersand (&) at the end of the command and closing the terminal/shell will result in the command getting interrupted/exiting.

nohup will work and so will screen. Have a look at the screen command.

Code:
man screen
You will need the screen package installed first.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0