A bit hackish way
{
while IFS= read -r line; doecho'write *27,"[1F",$namespace,">", "'$(echo$line | sed "s/\"/\"\"/g" )'",*27,"[1F"'printf'%s\n'"$line"done
} <<'EOF' | iris session iris
write $zv
write !,"hello ", $username,!
zn "%sys"
halt
EOFand output
$ bash test.sh
Node: e91a00f6512e, Instance: IRIS
USER>write $zv
IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2026.1.0L (Build 193U) Tue Jan 6 2026 01:46:47 EST
USER>write !,"hello ", $username,!
hello irisowner
USER>zn "%sys"
%SYS>halt- Log in to post comments
.png)
.png)
.png)

.png)