Hello,
$ cat t.prg
#!/usr/bin/hbrun //gtcgi
proc main
? OS(), VERSION(), DATE(), TIME()
? HB_GTVERSION(), HB_GTVERSION(1)
quit
$ ./t.prg
Linux 2.6.18-6-amd64 x86_64 Harbour 1.0.1dev Intl. (Rev. 9344) 09/11/08
10:07:35
TRM Harbour terminal driver
I think the correct behavior is to use the CGI terminal driver
because of the first line of the code ?
See in Changelog :
2007-04-11 22:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
...
* harbour/utils/hbrun/hbrun.prg
+ added support for compilation and direct execution of .prg files
Now hbrun can accept as first parameter .hrb or .prg file and if
it's .prg file it's compiled and then executed just like .hrb one.
In *nixes if you copy compiled hbrun to /usr/bin directory then
you can add to your .prg files as first line:
#!/usr/bin/hbrun
and then after setting executable attribute you can directly
execute them, f.e.:
./test.prg
If you are using Linux then you can also chose default gt driver
by dding to above line: //gt<name>
F.e.
#!/usr/bin/hbrun //gtstd
Thank you.
Guy
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour