Waiting for child .... ?

General discussion on the JZOS batch launcher and toolkit
Post Reply
dglancy
Posts: 1
Joined: Tue Aug 09, 2005 4:14 am

Waiting for child .... ?

Post by dglancy »

Hello,

I am trying to get JZOS working I have had it installed onto one of our test LPAR's. When I try and run one of our simple one-line programs (called PathCheck) - it seems to stall and just stay executing until the job is cancelled.

It appears that it is stalling on on the log line:

waiting for child

Does anybody have any idea as to what this is? Has anybody seen it before?

Many thanks for your assistance,

Damien

The output of the JOB is as follows:

Code: Select all

09:03:59 JZOSVM13(N): log level has been set to: T                                          
09:03:59 JZOSVM13(T): -> JzosVM()                                                           
09:03:59 JZOSVM13(N): Copyright (C) 2004 Dovetailed Technologies LLC. All rights reserved.  
09:03:59 JZOSVM13(N): JZOS Version 1.2.1                                                    
09:03:59 JZOSVM13(T): <- JzosVM()                                                           
09:03:59 JZOSVM13(T): -> run()                                                              
09:03:59 JZOSVM13(I): Region requested = 0K, Actual below/above limit = 8192K / 1024M       
09:03:59 JZOSVM13(T): -> adoptEnvironment()                                                 
09:04:00 JZOSVM13(T): Writing shell script to child's stdin:                                
09:04:00 JZOSVM13(T): # This is a shell script which configures                             
09:04:00 JZOSVM13(T): # any environment variables for the Java JVM.                         
09:04:00 JZOSVM13(T): # Variables must be exported to be seen by the launcher.              
09:04:00 JZOSVM13(T): . /etc/profile                                                        
09:04:00 JZOSVM13(T): export JZOS_HOME=/tmp/jzos/jzos                                       
09:04:00 JZOSVM13(T): export JAVA_HOME=/usr/lpp/java/IBM/J1.3                               
09:04:00 JZOSVM13(T):                                                                       
09:04:00 JZOSVM13(T): export PATH=/bin:"£{JAVA_HOME}"/bin:                             
09:04:00 JZOSVM13(T):                                                                  
09:04:00 JZOSVM13(T): LIBPATH=/lib:/usr/lib:"£{JAVA_HOME}"/bin                         
09:04:00 JZOSVM13(T): LIBPATH="£LIBPATH":"£{JAVA_HOME}"/bin/classic                    
09:04:00 JZOSVM13(T): LIBPATH="£LIBPATH":"£{JZOS_HOME}"                                
09:04:00 JZOSVM13(T): export LIBPATH="£LIBPATH":                                       
09:04:00 JZOSVM13(T):                                                                  
09:04:00 JZOSVM13(T): # Customize your CLASSPATH here                                  
09:04:00 JZOSVM13(T): CLASSPATH='/u/it64358/damo'                                      
09:04:00 JZOSVM13(T):                                                                  
09:04:00 JZOSVM13(T): # Add JZOS required jars to end of CLASSPATH                     
09:04:00 JZOSVM13(T): CLASSPATH="£CLASSPATH":"£{JZOS_HOME}/application.jar"            
09:04:00 JZOSVM13(T): CLASSPATH="£CLASSPATH":"£{JZOS_HOME}/junit.jar                   
09:04:00 JZOSVM13(T): CLASSPATH="£CLASSPATH":"£{JZOS_HOME}/jzos.jar                    
09:04:00 JZOSVM13(T): CLASSPATH="£CLASSPATH":"£{JZOS_HOME}/jzos_log4j.jar              
09:04:00 JZOSVM13(T): export CLASSPATH="£CLASSPATH":                                                       
09:04:00 JZOSVM13(T):                                                                                      
09:04:00 JZOSVM13(T): # Set JZOS specific options                                                          
09:04:00 JZOSVM13(T): # Use this variable to specify encoding for DD STDOUT and STDERR                     
09:04:00 JZOSVM13(T): #export JZOS_OUTPUT_ENCODING=Cp1047                                                  
09:04:00 JZOSVM13(T): # Use this variable to prevent JZOS from handling MVS operator commands              
09:04:00 JZOSVM13(T): #export JZOS_ENABLE_MVS_COMMANDS=false                                               
09:04:00 JZOSVM13(T): # Use this variable to supply additional arguments to main                           
09:04:00 JZOSVM13(T): export JZOS_MAIN_ARGS=""                                                             
09:04:00 JZOSVM13(T):                                                                                      
09:04:00 JZOSVM13(T): # Configure JVM options                                                              
09:04:00 JZOSVM13(T): IJO="-Xms16m -Xmx128m"                                                               
09:04:00 JZOSVM13(T): IJO="£IJO -Djzos.home=£{JZOS_HOME}"                                                  
09:04:00 JZOSVM13(T): # Uncomment the following if you want to run with Ascii file encoding..              
09:04:00 JZOSVM13(T): #IJO="£IJO -Dfile.encoding=ISO8859-1"                                                
09:04:00 JZOSVM13(T): export IBM_JAVA_OPTIONS="£IJO "                                                      
09:04:00 JZOSVM13(T):                                                                                      
09:04:00 JZOSVM13(T): export JAVA_DUMP_HEAP=false                                                          
09:04:00 JZOSVM13(T): export JAVA_PROPAGATE=NO                                                             
09:04:00 JZOSVM13(T): export IBM_JAVA_ZOS_TDUMP=NO                                                         
09:04:00 JZOSVM13(T): export IBM_JAVA_ZOS_TDUMP=NO                         
09:04:00 JZOSVM13(T): waiting for child
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

A child process is created to run the STDENV shell script. This message indicates that the shell script process is not completing. Is there something in your /etc/profile that might cause this to hang? Try commenting out the call to /etc/profile and see if that helps.

If you are not going to call /etc/profile, you will need at least set the following environment variables at the beginning of your STDENV script instead:

PATH=/bin:/usr/bin
LIBPATH=/lib:/usr/lib
LANG=C
TZ=GMT

(You will want to set LANG and TZ for your locale)

Not using /etc/profile is often a good idea, since it ends up being a dumping ground for configuring lots of product-specific stuff.
Post Reply