I need to pipe a string into the windows command line and run it. Specifically, I need to run ‘snmpset -v 2c -c private XXX.XXX.XXX.XXX #.#.#.oid.#.#.# i 1’, so an SNMP set command using net-snmp. That’s all working fine from the windows command line, I just need to get the command there from ignition.
Normally I would use the os.popen() method, but since this is jython that gets me into java instead of windows.
In other forum posts, I see people using app.run.execute(string) or similar things, but when I attempt to use these in ignition, the app library doesn’t have a run option or any of the other options I’ve seen in the forum. The closest I’ve gotten is system.util.execute, but since I’m not running and executable file this doesn’t work.