<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" 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 moz-do-not-send="false"
src="cid:part1.28CE8BDD.7E4D45CA@gambas-buch.de" alt=""
height="197" width="725"><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="moz-txt-link-abbreviated" href="http://www.gambas-book.net">www.gambas-book.net</a><br>
</font></font>
</body>
</html>