Solved

nohup

Posted on 2002-07-02
7
465 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 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IBM flash storage 840 15 58
Oracle 12c RAC - naming conventions, standards & best practices 4 165
Can I delete authorized_keys in FreeBSD 1 78
Martian Packets Unix 5 31
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now