Hi, thanks for your answer.
It works on my Raspberry EasyIoT Server.
The Test-ShellScript gives back the Param1 as Exitcode.
In the IOT-Automationscript, that runs every minute by CRON I have this.
public void Setup()
{
}
public void Run()
{
Console.WriteLine("Starting Shellscript by Cron");
System.Diagnostics.Process P = System.Diagnostics.Process.Start("sh","test.sh 123");
P.WaitForExit();
int result = P.ExitCode;
Console.Write("Exitcode: ");
Console.WriteLine(result);
Console.WriteLine("Shellscript by Cron done");
}
At the Console I get back the 123, what is set as parameter.