[Gambas-user] Reply: No EXEC Output but Works in Terminal
Ron_1st
ronstk at ...239...
Wed Mar 4 19:10:10 CET 2009
On Wednesday 04 March 2009, A Person wrote:
> Good Day . . .
>
> Thank You all except the one that told me to read the EXEC docs.
Despite I understand it a little it is not fair.
Still he was right.
> I read that many times and tried many variations including trying getting INPUT
> and OUTPUT to work.
Reading and understanding are two things.
> But nothing worked.
What did not work exactly.
> The one problem that I have with
> Gambas is that the docs are not adequate to a novice user.
I do agree there is something missing :(
> 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.
Bad thing to change the basic code.
That could just show what was wrong in your case.
However I remove in case of a mass of code also parts but do not
change the relevant parts _where_ it goes wrong.
>
> I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top
> showed nothing running.
If you did read the wiki doc you should have seen:
If WAIT is specified, then the interpreter waits for the command ending.
Otherwise, the command is executed in background.
It a bit logic to me that if 'the interpreter waits for the command ending'
there can be no (or less) process events for READ or WRITE.
So I will try with and without the WAIT. Did you do that?
What was the result in both cases and what did you expect?
>
> Can you show me an example of EXEC . . . WAIT with a variable returned?
>
> Thanks
>
> Paul
>
>
Did you try the examples on the wiki help page . What was the result?
Have you browse the examples included in gambas.
This is a good source to get some ideas.
Special the movieplayer is worth to read.
If you do you wil see why. :)
The Examples included contains a lot of tricks on how to do
some coding. Every one needs to learn when he start using something new.
Even for the time I did play with gambas 5year back v 0.46 I do
still today see new tips/tricks to use.
And a real good source is the gambas IDE from source.
My only problem is the fragmented, with good reason, code.
But reading the class and module files to see how things
are solved can deliver many good hints for my own code.
So, just try to use the movieplayer and look the code.
Hope this will answer your question for a example usage.
Happy gambas eating:)
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