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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 08-04-2008 11:29 AM
Control process from different terminal (over SSH) rakeshou UNIX for Advanced & Expert Users 3 12-19-2007 08:48 PM
Closing a thread linuxpenguin Post Here to Contact Site Administrators and Moderators 3 11-21-2003 08:37 PM
Start process in shellscript at other terminal benschell Shell Programming and Scripting 4 09-02-2002 08:24 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 03:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-03-2007
lakshmananindia lakshmananindia is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 23
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?
  #2 (permalink)  
Old 09-03-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958

Code:
man nohup

<message too short>
  #3 (permalink)  
Old 09-03-2007
fazliturk fazliturk is offline
Registered User
  
 

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

script&
  #4 (permalink)  
Old 09-03-2007
digen digen is offline
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0