On Dec 6, 2004, at 11:12 PM, Ranga Nathan wrote:
I need to write to /dev/cpcmd and read back from it.
Can someone start me up in the right direction?
You probably want to open the file as "+
You probably want to set command buffering on the filehandle, (my
$oldfh=select(CPCMD); $|++;select
An interface to z/VM's command processor (CP) is implemented as a device
(/dev/cpcmd)
I want to use perl to send commands and receive results.
I have never done I/O to device, so this is something new.
I have a sample c program that does:
fd = open(CPDEV, O_RDWR);
if (fd >= 0) {
rc =
2 matches
Mail list logo