[Gambas-user] Reply: No EXEC Output but Works in Terminal

Ron_1st ronstk at ...239...
Wed Mar 4 19:18:58 CET 2009


On Wednesday 04 March 2009, Jussi Lahtinen wrote:
> I tried your code... (first I did move test.sh to execution folder).
> With me, this;
> EXEC ["sh", Application.Path &/ "test.sh"] TO sOutPut
> works well.
> 
> But this;
> EXEC ["sh " & Application.Path &/ "test.sh"] TO sOutPut
> does NOT work (no output).
> So EXEC command is pretty picky. Benoit, comments?
> 
> Also, if words.txt is in wrong place, execution freeze.
> Do this;
> 
> PRINT "sh " & Application.Path &/ "test.sh"
> Put the output to terminal to see if you got right paths.
> 
> Cannot say more...
> 
> 
> Jussi
> 
> 
> 
> On Wed, Mar 4, 2009 at 5:24 PM, A Person <5t3c7w4r at ...1092...> wrote:
> > Good Day . . .
> >
> > Thank You all except the one that told me to read the EXEC docs. I read
> > that many times and tried many variations including trying getting INPUT
> > and OUTPUT to work. But nothing worked. The one problem that I have with
> > Gambas is that the docs are not adequate to a novice user. I tried
> > writing docs for a project but I did not know enough.
> >
> > Before I submitted this I used the full path but I changed it in the
> > demo so that a tester would not have to change anything.
> >
> > I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top
> > showed nothing running.
> >
> > Can you show me an example of EXEC . . . WAIT with a variable returned?
> >
> > Thanks
> >
> > Paul
> >
> >

BTW
What is the content of the test.sh?

Does it start with '#!/bin/bash' or '#!/bin/sh' ?
If not your command shouls be '/bin/bash /full path/test.sh'


Just a tip, use as command "(/home/usr/paul/bin/text.sh)"
Yes indeed surround your command with ()
This force all output by bash and command to 1 output for process_read

Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 




More information about the User mailing list