Get started with vmop-agent.
This commit is contained in:
parent
d2c39dc06a
commit
4a7a309f07
6 changed files with 95 additions and 7 deletions
19
dev-example/vmop-agent/vmop-agent
Executable file
19
dev-example/vmop-agent/vmop-agent
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
hostSerial="/dev/virtio-ports/org.jdrupes.vmop_agent.0"
|
||||
|
||||
if [ ! -w "$hostSerial" ]; then
|
||||
echo >&2 "Device $hostSerial not writable"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! exec {con}<>"$hostSerial"; then
|
||||
echo >&2 "Cannot open device $hostSerial"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo >&${con} "220 Hello"
|
||||
|
||||
while read line <&${con}; do
|
||||
true
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue