Hello this is Gulshan Negi
Well, to execute a system command on Linux from 1C, you can use the built-in mechanism for running external programs - ShellExecute.
Example:-
CommandText = "udevadm info --query=all --name=/dev/sda | grep ID_SERIAL_SHORT";
ShellExecute(CommandText, "", "", ExecutionMode::Asynchronous);
This code will execute the udevadm info command with the provided parameters and pipe its output to grep ID_SERIAL_SHORT to extract the serial number. The output of the command will be captured by 1C and can be processed further.
I hope it will help.
Thanks