![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to monitor process running on server and posting a mail if any process is dead | pradeepmacha | Shell Programming and Scripting | 13 | 03-06-2009 07:33 AM |
| Can a child process return a specific value to a parent process ? | Ametis1970 | High Level Programming | 8 | 04-09-2008 11:22 PM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell Programming and Scripting | 1 | 02-15-2008 07:10 PM |
| how to start a process and make it sleep for 5 mins and then kill that process | shrao | Shell Programming and Scripting | 6 | 03-27-2007 12:54 PM |
| my process is going to sleep mode after 12 hours but i need my process in in firsy pr | mukesh_rakesh1 | UNIX for Advanced & Expert Users | 0 | 09-05-2006 02:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
daemonize a process using ksh
I'm trying to create daemon processes with ksh as follows:
Code:
function start
{
# start script as co-process and pass an argument
./1.ksh $1 |&
# print pid
print $!
# move the file descriptors of the co-process to 4 and 5
exec 4>&p
exec 5<&p
# then close them
exec 4>&-
exec 5<&-
}
for server in $servers
do
start "arg1"
done
Code:
while read -ru5 do print -r $line done than it works. I want the 1.ksh processes to become daemon processes and finish and I want the calling script to exit. I run it on a SunOS 5.8 server with ksh 88. |
| Sponsored Links | ||
|
|