Skip to content

Instantly share code, notes, and snippets.

@NikolasK-source
Last active October 23, 2023 06:57
Show Gist options
  • Save NikolasK-source/1da665492478ad2e12f0495e8212f641 to your computer and use it in GitHub Desktop.
Save NikolasK-source/1da665492478ad2e12f0495e8212f641 to your computer and use it in GitHub Desktop.
network.koesling.shm-modbus launcher scripts (shorter commands)
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus dump-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus modbus-shm-to-stdout $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus signal-gen $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/sh
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus modbus-tcp-client-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus modbus-rtu-client-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus shared-mem-random $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus shm-stack-machine $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus stdin-to-modbus-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus wago-modbus-coupler-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
#!/bin/bash
trap "" INT TERM QUIT
flatpak run network.koesling.shm-modbus write-shm $@
ret=$?
if [ $ret -gt 128 ]; then
exit 0
fi
exit $ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment