Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

nohup

Posted on 2002-07-02
7
Medium Priority
?
477 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 400 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

715 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