Closed troglobit closed 1 year ago
In #185 daemon support for batching multiple transactions was added to the IPC code. For the next release it would be great if we could have this support natively in smcroutectl. E.g.,
smcroutectl
$ sudo smcroutectl -f - << EOF join eth0 225.1.2.3 add eth0 192.168.1.42 225.1.2.3 eth1 eth2 rem eth1 225.3.4.5 eth3 leave eth1 225.3.4.5 EOF
I guess we could use isatty(STDIN_FILENO) go into batch mode automatically:
isatty(STDIN_FILENO)
$ cat << EOF | sudo smcroutectl join eth0 225.1.2.3 add eth0 192.168.1.42 225.1.2.3 eth1 eth2 rem eth1 225.3.4.5 eth3 leave eth1 225.3.4.5 EOF
In #185 daemon support for batching multiple transactions was added to the IPC code. For the next release it would be great if we could have this support natively in
smcroutectl
. E.g.,I guess we could use
isatty(STDIN_FILENO)
go into batch mode automatically: