#!/bin/sh
sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
./build/kossel-firmware ./tty3dps

#!/bin/sh
sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
#Octoprint needs to be able to read from its tty:
sudo chmod +r ./tty3dpm ./tty3dps
./build/kossel-firmware ./tty3dps

Correct chmod settings for socat
Correct chmod settings for socat