On Linux systems, the command line interface there is no command that says read commands from a file.
A sample session looks like:
iris session myinstance
Username: superuser
Password: ************
myinstance:USER>zn "%SYS"
myinstance:USER>write !,"hello"
hello
myinstance:USER>source /tmp/mycommands.iris <- new command suggestion to read commands from a file
ps. I think the functionality exists on Windows terminal application but does not exist on Linux terminal application
Thank you for posting the idea. According to information from experts, this functionality already exists.
Discussion continued here
https://community.intersystems.com/post/ansible-module-iris-session
Yes that is possible.
However you cannot with this feature:
enter user id & password
Is not flexible, in that you cannot start an interactive seesion say to check on something then if the check proves OK then run a set of commands from a file
Phillip, thank you for posting the idea. According to information from Developer Community experts, this functionality already exists.
cat <<EOF | iris session IRIS
Write !,"hello"
halt
EOF
cat /tmp/mycommands.iris
| iris session IRIS