z25 / ZOCPApps

Collection of ZOCP applications
GNU General Public License v3.0
1 stars 5 forks source link

added a simple stdio zocp app (only stdin currently) #11

Closed sphaero closed 9 years ago

sphaero commented 9 years ago

I think this will only work on Linux and perhaps on OSX. Not tested! Example:

tail -f /var/log/syslog | zstdio.py

You can then receive the syslog messages as they arrive in syslog. You can use it on a simple file as well, i.e. watch /tmp/test

tail -f /var/log/syslog | zstdio.py
echo "woah" >> /tmp/test
fieldOfView commented 9 years ago

Copy/paste error in the second example?

fieldOfView commented 9 years ago

Confirmed that it doesn't work on Windows. This app could do with a readme