The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-02-2009
som.nitk som.nitk is offline
Registered User
  
 

Join Date: Nov 2008
Location: Pune, India
Posts: 23
threads in ksh script

Hi Unix Gurus,
Please guide me on how to simulate threads in korn-shell scripting. I am new to ksh scripting.

What I want is a simple 2 liner code to create two threads and then run two parallel jobs in these two threads at the same time. Also please tell me how to catch the return code in each of these threads.

As far as I know threads are not there in ksh, but I heard creating a sub-shell would create the effect.
Please guide.
Thanks