Nohup with ampersand & process gets disconnected


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
Portability: /bin/sh is present on every *X OS. (Well, SCO Unix and an old HP-UX might need the workaround ${1+"$@"} for a historic bug with "$@".)
It works with any compatible shell, too.
# 9  
Quote:
Originally Posted by gandolf989
Cool script. I will have to test it and see how it works. Did you use the Bourne shell for a particular reason?
Why not use the Bash shell? Thanks
This script doesn't actually need bash, so it's better to use the more portable /bin/sh. It can be carried to AIX or whatever without compatibility worries.
# 10  
Unfortunately, for backwards compatibility reasons /bin/sh on Solaris systems (at least up until Solaris 11) is a pure 1980's Bourne shell. To get a POSIX conforming shell on Solaris systems, their man pages, indirectly, say to use /usr/xpg4/bin/sh.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Problems with ampersand (&) in sed command
Bambuti2000
Hello everybody, I have a Problem with sed command. I want to replace a defined string with a string from a database field (dynamic). e.g. sed -i -e 's/%NAME%/'"$HNAME"'/g' The Problem is that the $HNAME variable can contain Special characters like '&' e.g. HNAME="AH Kruger & Co. KG" ...... Shell Programming and Scripting
1
Shell Programming and Scripting
Difference between & and nohup &
Anupam_Halder
Hi All, Can anyone please help me understanding what the difference between the below two? 1. script.sh & 2. nohup script.sh &... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
Running process in nohup
arunkumar_mca
Hi All, I am facing issue in running a process in nohup. I ran a process in terminal since it is taking too long to complete I need to make it as background and nohup. I tried below and was able to make it in back ground 1. Cntrl + Z 2. bg I am using Korn Shell so disown is not working...... UNIX for Advanced & Expert Users
5
UNIX for Advanced & Expert Users
Understanding ampersand (&) usage in the command
Shan_u2005
Please explain the usage of ampersand in the following command who & echo "Total number of users are `who|wc -l`" What I understand is that ampersand is used to run some process in the background. And, what I am expecting from this command is "Output of who should be displayed on the...... Shell Programming and Scripting
2
Shell Programming and Scripting
nohup and background process
srksn
What is the difference between running a process using nohup and running a process in background ? Please explain... UNIX for Advanced & Expert Users
6
UNIX for Advanced & Expert Users