![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
fongthai,
Do not bump your thread to the top without reason - Everybody wants to get their thread seen and the forums do move quickly but please don't bump your thread to the top of the forum for no reason as it pushes other peoples threads off the board unfairly. You can bump your thread if you are adding new information (more than a single line) or if you are adding another mod to the collection. Bumps solely for the purpose of moving the thread to the top of the page are not allowed. Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|