Page 1 of 1

executing a shell command in ProcessMaker

Posted: Mon Jul 04, 2022 9:11 am
by mhasgari
Hi
Is it possible to execute a Linux Shell command right from a ProcessMaker trigger?
Something like exec() command in PHP i mean...

Re: executing a shell command in ProcessMaker

Posted: Tue Jul 05, 2022 3:05 pm
by marceloayllon
Hi mhasgari ,

Yes, will be possible as you are using PHP code to call Powershell if you are using a script task or a trigger in a user task like this:

Shell_Exec ('powershell.exe -executionpolicy bypass -NoProfile -File ".\MyPSscript.ps1"');

Re: executing a shell command in ProcessMaker

Posted: Wed Jul 06, 2022 3:45 am
by mhasgari
marceloayllon wrote: Tue Jul 05, 2022 3:05 pm Hi mhasgari ,

Yes, will be possible as you are using PHP code to call Powershell if you are using a script task or a trigger in a user task like this:

Shell_Exec ('powershell.exe -executionpolicy bypass -NoProfile -File ".\MyPSscript.ps1"');
Thanks Marcelo
I'm using Ubuntu, so how can I perform it on Linux?