And another thing.....

It isn't a problem with REXEC or REXECD.

Instead of executing each command via REXEC to Linux, I created a script which 
had all the commands in it.
So, REXEC only executed the script.
But what happened was....

The tar was being executed.
Long before the tar completed, bash started executing the remainder of the 
commands in the script.  However tar was still running (and keeping the tape 
drive in use).

This is similar to tar being executed asynchronously.

However, when I run the script interactively, from Putty (actually Kitty), the 
command runs like it is suppose to.  Only when the tar completes does the next 
command start to executed.

So, it seems, at this point, that tar knows when it is being executed remotely 
and returns control early (and continues to execute).

However, executing the script using VM's REXEC, didn't produce the asynchronous 
behavior.

So, REXEC from VSE using the CSI 1.5E stack seems to be telling tar something 
that REXEC from VM (z/VM 5.2) isn't.

Time for a beer.

Tom Duerbusch
THD Consulting

>>> Carsten Otte <[email protected]> 7/28/2011 8:41 AM >>>
Hi Tom,

if I recall correctly, we reserve the tape on open, and free it on closing
the file descriptor. You shout be able
to find out which process is using it via "fuser /dev/ntibmX".

with kind regards
Carsten Otte
IBM Linux Technology Center / Boeblingen lab
--
omnis enim res, quae dando non deficit, dum habetur et non datur, nondum
habetur, quomodo habenda est

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390 
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to