<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Il giorno mer 5 set 2018 alle ore 11:49 Hans Lehmann <<a href="mailto:hans@gambas-buch.de">hans@gambas-buch.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<font size="+1"><font face="DejaVu Sans Mono">Hello,<br>
<br>
that's exactly how it is. For example, if you want to run a bash
script after starting the runscript.gambas executable, you will
get an error because all files in the project archive are
read-only. <br>
<br>
<img src="cid:part1.28CE8BDD.7E4D45CA@gambas-buch.de" alt="" width="725" height="197"><br>
<br>
That would be a proven way out:<br>
<br>
' Gambas class file<br>
<br>
Public sScriptPath As String<br>
Public sTempScriptPath As String<br>
<br>
Public Sub Form_Open()<br>
<br>
sScriptPath = "./data/test_script.sh"<br>
sTempScriptPath = Temp(File.BaseName(sScriptPath))<br>
<br>
Copy sScriptPath To sTempScriptPath<br>
Chmod sTempScriptPath To "r-xr-xr-x"<br>
<br>
End<br>
<br>
Public Sub btnRunScript_Click()<br>
<br>
Dim sStore As String<br>
<br>
txaResult.Clear() <br>
Shell sTempScriptPath To sStore<br>
txaResult.Text = sStore<br>
<br>
End<br>
<br>
This way might also be the right one for a library.<br>
<br>
Regards,<br>
<br>
Hans<br>
<a class="gmail-m_5637365434998873662moz-txt-link-abbreviated" href="http://www.gambas-book.net" target="_blank">www.gambas-book.net</a><br>
</font></font>
</div>
<br><br></blockquote><div><br></div><div><br></div><div>Hi Hans,</div><div>the attached code, it works well for me.</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div>