Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

nohup

Posted on 2002-07-02
7
Medium Priority
?
479 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
  • 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
Independent Software Vendors: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

773 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