On Thu, Nov 26, 2009 at 10:15 PM, Victor Ochoa Avila <[email protected]> wrote:
> My idea is have one script in mi Z/VM user, this script send to the each
> linux in LPAR and execute, hi is very complicated to maintain this script
> updated in each one of the linux, but this reason my idea is to update this
> script only (Z/vm) and later send it to each one of the guests linux in the
> LPAR.
Ok, so how about this:
- enable the /dev/vmrdr-0.0.000c- and /dev/vmpun-0.0.000e devices as
in the Device Drivers book
- run a cron job on regular basis to issue "vmur list" and check for valid files
- when valid file is found, do something like this:
vmur receive 77 -t -H -O | /bin/sh > temp.out
vmcp sp pun rvdheij
vmur punch -t temp.out
Obviously you valid the authority of the sender etc...
>From a CMS userid, you can prepare the shell script and PUNCH it (with
NOH option). After the command completed, the output is returned to
the CMS user for further processing.
PS I thought I could do something like "vmur receive ... | /bin/sh |
vmur punch ... " but apparently it does not work like that...
Rob