Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

nohup not working


Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-03-2007
arsheshadri arsheshadri is offline
Registered User
Join Date: Jan 2007
Last Activity: 27 June 2008, 8:24 AM EDT
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
nohup not working


I am working in SunOS 5.8.
I wanted to run a script in background and I gave the following command, but it is not working.

I gave "nohup ksh ULOAD.ksh &"
It just came out giving a msg "Redirection or piping of stdin or stdout is allowed only with -b. (156)" in nohup.out file.

If I just try "ksh ULOAD.ksh &" without nohup it is working fine.

Can you tell me where I am going wrong?

Thanks & Regards
Sponsored Links
Old Unix and Linux 01-04-2007
mr_manny mr_manny is offline
Registered User
Join Date: Oct 2005
Last Activity: 15 November 2013, 4:46 PM EST
Posts: 154
Thanks: 1
Thanked 2 Times in 2 Posts
why are you calling ksh before your script?

the following works for me....

create a test script:

-bash-3.00$ cat test.sh
echo "the current time is - `date`"

locate your nohup:

-bash-3.00$ whereis nohup
nohup: /usr/bin/nohup /usr/man/man1/nohup.1

and execute:

-bash-3.00$ /usr/bin/nohup ./test.sh &
[1] 16659
-bash-3.00$ Sending output to nohup.out

[1]+ Done /usr/bin/nohup ./test.sh

view results:

-bash-3.00$ cat nohup.out

the current time is - Thu Jan 4 09:05:37 PST 2007
Sponsored Links
Old Unix and Linux 01-09-2007
sparcguy sparcguy is offline Forum Advisor  
Registered User
Join Date: Nov 2006
Last Activity: 7 October 2015, 6:30 AM EDT
Posts: 381
Thanks: 3
Thanked 8 Times in 8 Posts
we had that nohup problem too, and we realise it's the ksh problem.

try this run a shell first followed by nohup


ksh or sh


nohup ksh <script>

then it shud work.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script not working with nohup ricitron Shell Programming and Scripting 10 02-15-2012 02:05 PM
nohup not working isaacniu Shell Programming and Scripting 1 01-05-2012 10:39 PM
ssh -t and nohup croachrose Shell Programming and Scripting 2 05-12-2011 07:32 PM
When we need nohup ehchn1 UNIX for Dummies Questions & Answers 2 10-07-2009 10:30 AM
NOHUP not working shivamasam Solaris 4 09-19-2007 09:08 AM

All times are GMT -4. The time now is 09:25 PM.