The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with nohup command Rajat UNIX for Dummies Questions & Answers 1 09-13-2008 11:41 AM
nohup command o/p redirection ammu Shell Programming and Scripting 3 07-09-2008 12:38 PM
What's the command for nohup in Oracle cabarcaj Shell Programming and Scripting 1 04-07-2006 10:22 AM
Nohup Command blazix UNIX for Dummies Questions & Answers 9 01-23-2005 06:01 PM
Nohup command on Solaris errolg UNIX for Dummies Questions & Answers 1 05-16-2002 12:44 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-17-2008
jayaramanit jayaramanit is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 28
nohup command in a script.......

I want to know how to use a nohup command in the script........


I have to run following command

nohup /tmp/app/statuscheck.sh &


After typing this command I will type ctrl D to come to the prompt and the that command will run in backround.


I want to include that command in a script . How to include it.what to do for Ctrl in the script..
  #2 (permalink)  
Old 09-17-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
You should not need to type ctrl-D to get back to the prompt. If your shell has proper job control, & should put the script in the background and return you to the prompt. The exact same commands should work in a script.
  #3 (permalink)  
Old 09-17-2008
jayaramanit jayaramanit is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 28
i waited for a long time.but it is not returning to the prompt....
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 07:48 AM.


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