This might be a very simple question, I hope, about the system.util.execute Python script function.
I read in the Forum about how to execute a Windows executable program, in order to run a command as though you were at the command line. You use CMD.EXE, in this case to refer to a Batch file.
Does anyone know how to do the same for a Linux shell ?
The goal is actually to have a way to shut down the Ignition server computer (shutdown -h now) before powering down the equipment in which it is installed. While yes, they could do that from a SSH shell or web shell, these users are somewhat unsophisticated. I don’t want them just yanking the cord out of the wall.
I’ve experimented with calling the /bin/bash shell, or just sending the command directly, but so far no luck. The Linux box is running the barest bones of Ubuntu 10.04.