Search found 11 matches
- Monday 13th February 2017 10:38am
- Forum: General
- Topic: Gambas for Puppy-Linux
- Replies: 19
- Views: 33558
Re: Gambas for Puppy-Linux
Some feedback: I downloaded iso for slacko 6.3.2 and it was impressive. Could download and install Gambas3 right away. Verdict is that it is extremely fast with a low memory & resources usage. However.... Virtualbox + Puppy = Not a seamless experience. (Say no more.) I have some <very old and on...
- Monday 13th February 2017 10:26am
- Forum: Lounge
- Topic: Review of Gambas in Linux User & Developer, October 2016
- Replies: 1
- Views: 8239
Review of Gambas in Linux User & Developer, October 2016
This review of Gambas (saved on Google Drive as a .png image) was from the Linux User & Developer Magazine, October 2016. https://drive.google.com/open?id=0B1CewnZB0hD_YXBoSXZ0S2tXR2c https://lh6.googleusercontent.com/sfSUG2blqh2Fecb380VykXGDvSc8BMxH6YuwMiZoYQkGA7i9hD0lS1vLUJ1Cw75pqN5fM6aEGF6Wpr...
- Monday 13th February 2017 10:14am
- Forum: General
- Topic: gb.args - alternate form of usage.
- Replies: 8
- Views: 11533
Re: gb.args - alternate form of usage.
@cogier The second post was to illustrate how to get the value passed to the parameter in a CLI command. For example, Given the CLI command convention: command --argument value as in $ myclicmd --foo bar would return the value "bar" by accessing Args[3] (or Args[4]...) for multiple values....
- Monday 13th February 2017 9:57am
- Forum: General
- Topic: Using pipes in the Gambas Exec command.
- Replies: 3
- Views: 7282
Re: Using pipes in the Gambas Exec command.
Something more, if you are going to execute numerous send-keys commands to tmux from within Gambas, insert a shell command to let the system sleep for a second in between the statements. In this case I am using the shell command to wait for a second, though there are probably cases where a delay sho...
- Monday 13th February 2017 9:41am
- Forum: General
- Topic: gb.args - alternate form of usage.
- Replies: 8
- Views: 11533
Re: gb.args - alternate form of usage.
@jornmo, I have done exactly what you have suggested. Case "--help", "-h" However, I have many CLI scripts that call other scripts in turn. When developing custom CLI scripts it is ridiculous how often the short version is simply impractical since numerous commands will share the...
- Monday 13th February 2017 9:34am
- Forum: General
- Topic: Using pipes in the Gambas Exec command.
- Replies: 3
- Views: 7282
Using pipes in the Gambas Exec command.
For CLI utilities written in Gambas, there is a hack that allows the Unix pipe command in an Exec statement by sending keys to tmux. Exec ["tmux", "send-keys", "cat foo | grep bar" & "\r\n"] The above command lists the contents of the file named 'foo' to t...
- Saturday 11th February 2017 9:04am
- Forum: General
- Topic: Gambas for Puppy-Linux
- Replies: 19
- Views: 33558
Re: Gambas for Puppy-Linux
Nice vid. This motivated me to start a puppy-linux installation in Virtualbox and play with it. Many years since I last used puppy-linux.
- Friday 10th February 2017 9:21am
- Forum: General
- Topic: gb.args - alternate form of usage.
- Replies: 8
- Views: 11533
Re: gb.args - Something I forgot...
I forgot to include this in the above... I access the value of the parameter through a function that is used in the routines called in the case loop. Here is the code for that: Public Sub GetStrParam() As String Dim arrParams As String[] Dim strParam As String arrParams = Args.All If arrParams.Count...
- Friday 10th February 2017 8:54am
- Forum: General
- Topic: gb.args - alternate form of usage.
- Replies: 8
- Views: 11533
gb.args - alternate form of usage.
Greetings Everyone! Benoït has an excellent explanation on using gb.args in this thread: http://gambas.8142.n7.nabble.com/New-component-gb-args-td31829.html However, my mind is wrapped around the way command line arguments are used in most Ruby libraries. Simply because I am used to it, I use gb.Arg...
- Thursday 2nd February 2017 10:49am
- Forum: Lounge
- Topic: You are welcome
- Replies: 13
- Views: 21955
Re: You are welcome
Thank you for your kind words. I have started with an Afrikaans translation for Gambas. Affrikaans originated from Dutch, and is the first language of over seven million people in South Africa and Namibia. Who knows, one day schools might use Gambas to teach programming in South African schools? To ...