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
nohup.out ramky79 AIX 5 10-23-2007 07:28 AM
nohup - help! bluemoon1 UNIX for Dummies Questions & Answers 9 10-12-2007 12:49 AM
Help on nohup bobbyjohnz UNIX for Advanced & Expert Users 3 10-18-2006 12:56 PM
nohup ( no log message) mike1022 Shell Programming and Scripting 1 09-16-2006 09:55 PM
Nohup miwinter UNIX for Dummies Questions & Answers 3 07-21-2006 06:20 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-05-2008
fongthai fongthai is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 54
nohup within a pipe

Dear,

I have a script to start tomcat. I post here the main part of that script - called mytomcat.bash

Code:
function start() 
{
    shift
    trap "" HUP
    /usr/local/java/bin/java  [some_options] \ org.apache.catalina.startup.Bootstrap "$@" start 2>&1 | /usr/local/httpd/bin/rotatelogs /usr/local/catalina/logs/catalina.log 86400 &
}
It run well:
Code:
./mytomcat.bash start
But the terminal will hang when i exit.

I tried with nohup like this:
Code:
nohup ./mytomcat.bash start &
It's can release the terminal.

But I want to use nohup inside my script, I tested with this:

Code:
 nohup /usr/local/java/bin/java  [some_options] \   org.apache.catalina.startup.Bootstrap "$@" start 2>&1 | /usr/local/httpd/bin/rotatelogs /usr/local/catalina/logs/catalina.log 86400 &
I doesn't release the terminal.

Anyone can help?

Thank you.
 

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 01:49 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