Strange - almost sounds like tar is getting a '&' appended and running in
the background..   which doesn't seem possible if it's just being executed
as part of a script.  I need a beer too.

Scott Rohling

On Fri, Jul 29, 2011 at 3:09 PM, Tom Duerbusch
<duerbus...@stlouiscity.com>wrote:

> 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 <co...@de.ibm.com> 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 lists...@vm.marist.edu 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 lists...@vm.marist.edu 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 lists...@vm.marist.edu 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