[Gambas-user] using gambas as a scripting language ?
Jaap Cramer
jaap_cramer at ...67...
Mon Jun 2 19:39:31 CEST 2008
I thought you should use a
SUB main()
PRINT Subst("Used memory: &1 bytes", GetUsedMemory())
END SUB
On Tue, 2008-06-03 at 00:07 +0700, Arief Bayu Purwanto wrote:
> On 6/2/08, abom at ...1919... <abom at ...1919...> wrote:
> >
> > then saving it as file.gambas , runnign it ./file.gambas
> >
> > but it gives me :
> >
> >
> > root at ...1920...:/home/abom# chmod +x ./gb.gambas
> > root at ...1920...:/home/abom# ./gb.gambas
> > /usr/bin/env: gbs2: No such file or director
> >
> >
> > any help ^^ ?!
>
>
> Try finding where gbs2 is:
> $whereis gbs2
> in my box there isn't any gbs2 because I only use gambas3 devel, so whereis
> gbs3 return:
> silent at ...1792...:/tmp$ whereis gbs3
> gbs3: /usr/local/bin/gbs3 /usr/local/bin/gbs3.gambas
>
> and change your env information based on that:
>
> #!/usr/bin/env /usr/local/bin/gbs3 << change it to where your gbs2 is.
>
> someone have a better answer as I'm not really good in shell scripting?
>
>
>
>
More information about the User
mailing list