Hello everyone,
I am trying to use the system.util.execute()
function to create some log files on the ubuntu host OS.
Anyone know how to make the magic work with this simple shell command:
echo "Some text for my log file" > testfile.log
In Ignition the following is not working:
system.util.execute(["echo","Some text for my log file",'>',path+"/testfile.log"])
even though I have tried multiple variants of that one. I suspect im having problems with the >
operator. I also need this one for my next execute command which is also not working:
system.util.execute(["git","-C",path,"status",">",path+"/myGit.log"])
Thanks for reading this!