I don't think Linux itself can detect that. But if you monitor the Linux console through a user running PROP you can see a file has arrived in the RDR because this will give a message in the virtual machine. PROP can then be used to send a command to the Linux machine to process that file.

That's what we do, when a file arrives in the RDR we send a command to start a script to process that file. This general script (receive_files) receives the file and then runs an additional script to process the file. A config file determines what to do with the file that has arrived, including where to receive the file and what additional script is to be executed. Here are some examples:

- We send a tar file with updated scripts in /root/bin/* to all of our guests. These scripts are maintained in a central guest.

- Each day all guests send their logfiles to a Samba machine, the Samba machine stores them in a reporting directory. This way we have all logfiles available from our Windows workstations.

- We send our reporting data to a machine that loads the data into a MySQL database. The data is created from the CP MONITOR, packed with vmarc and then send to the Linux guest. We have vmarc available in Linux as well to unpack the data.

Regards, Berry.

Op 31-08-2022 om 22:46 schreef Donald Russell:
Short of having some Linux script querying the virtual reader, is there a
way Linux can detect when a file arrives and invoke a script?

Sort of like incrond for file system events.

The idea is from cms I could send a file to the Linux virtual reader and
then Linux would process with vmur commands.

How does CMS WAKE-UP do it? I assume when a. We file arrives there’s a.
Unsolicited DE (Ready) interrupt that Linux currently ignores.

Can I configure something with udev rules?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to