nohup not working | Unix Linux Forums | Solaris

  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

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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

Hi,

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
Sheshadri
Sponsored Links
    #2  
Old 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
#!/bin/sh
echo
echo "the current time is - `date`"
echo
exit

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
    #3  
Old 01-09-2007
sparcguy sparcguy is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 3 August 2013, 2:12 AM EDT
Posts: 364
Thanks: 1
Thanked 5 Times in 5 Posts
we had that nohup problem too, and we realise it's the ksh problem.


try this run a shell first followed by nohup

example

ksh or sh


then

nohup ksh <script>

then it shud work.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:07 PM.