Solved

nohup

Posted on 2002-07-02
7
474 Views
Last Modified: 2013-12-27
I would like run nohup command on java application. But its not working in solaris 8(Intel). I'm running nohup command as user :

nohup progname &.

Its not working. I'd try also without nohup i.e. progname & -- not working, I'm using sh shell.

All the above command working fine in bash and ksh shell


Anybody can help me.
0
Comment
Question by:arvind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 7125664
nohup in Solaris 8 (Intel), only work when you run as root

you can use:
   su root -c "nohup program logfile 2>&1&"

or download the screen untilities (free) from the following site:

   http://sunfreeware.com/
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7127386
yuzh, is this a Intel restriction?
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7128692
That's a good question ahoffman. I just did some testing on the question.

arvind, nohup only have problem to run when you are a no root user and your current shell is ksh. IT WILL WORK WITH
csh/tcsh/sh, if your can write a little csh or sh script to do your job. (I have tested it on Solaris 7/8 both Intel and Sparc)

eg:

#!/bin/sh
/usr/bin/nohup $1 &

and use your java script to call the shell script.




0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 7129478
what is the problem with nohup in ksh? there should be none.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7130859
For none-root user to run nohup (root works fine), when they logout, the nohup process get killed.

But if you change you shell to sh/tcsh/csh, and run nohup, it will work. (my default login shell is ksh, that's why I
found this problem, I remember it works fine whith SCO UNIX, and it might work for some other UNIX favour.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7540036

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- Answered by: yuzh

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
0
 

Expert Comment

by:modulo
ID: 7590957
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question