18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to execute shell script from within Sahi script?
Hi All,
I want to call a shell script from within my sahi script. I am trying with:
_execute("/mypath/myshell.sh",true);
But, it is not executing the shell script.
Shell script is to send email and contains the code:
If I directly execute this shell script then it sends email, but when it is called in sahi, it does nothing.
(I intentionally need to use this sendEmail executable, rather using sahi's mail sender)
Please help in this. Thanks in Advance.
I want to call a shell script from within my sahi script. I am trying with:
_execute("/mypath/myshell.sh",true);
But, it is not executing the shell script.
Shell script is to send email and contains the code:
sendEmail -f from@domain.com -t to@domain.com -u "Subject body" -m "Message body" -s xx.xx.xx.xx
If I directly execute this shell script then it sends email, but when it is called in sahi, it does nothing.
(I intentionally need to use this sendEmail executable, rather using sahi's mail sender)
Please help in this. Thanks in Advance.
Comments
I am using same approach, but it is working fine for me.
I am using _execute("command",true) and its working.
Can you please tell if any error comes or not ?