[Gambas-user] Console

Rob sourceforge-raindog2 at ...94...
Thu Sep 9 15:43:49 CEST 2004


On Thursday 09 September 2004 06:32, BUDI ARIEF GUSANDI wrote:
> How to run multiple application in console? seems when we run
> one, we should wait for it to finish before running another...

You can run multiple programs in the console by using "&".

$ cp /some/huge/file /somewhere/else &
[1] 29483
$ find / | grep "bad way to locate something" & ls -al
[2] 29484
total 843746
drwxr-xr-x  224 schmoe   schmoe      32768 Sep  9 09:41 ./
drwxr-xr-x    6 root     root         4096 Feb  3  2004 ../
drwx------    3 schmoe   schmoe       4096 May 23  2003 .21-6/
drwxr-xr-x    2 schmoe   schmoe       4096 Oct 11  2002 .acrobat/
-rw-rw-r--    1 schmoe   schmoe          0 Mar 27 12:17 
.addressbook
-rw-------    1 schmoe   schmoe       2285 Mar 27 12:17 
.addressbook.lu
drwx------    2 schmoe   schmoe       4096 Mar  7  2004 .adobe/
-rw-r--r--    1 schmoe   schmoe         70 Oct 28  2002 
.assistanttbrc
-rw-r--r--    1 schmoe   schmoe       3489 Dec 13  2003 
.atanks-config
-rw-rw-r--    1 schmoe   schmoe        845 Aug  1 15:26 .audacity
[etc...]
$ jobs
[1]+  Running cp /some/huge/file /somewhere/else
[2]+  Running find / | grep "bad way to locate something"
$ %1
(it will just sit there until the copy finishes)
or
$ kill %2
[2] Terminated

Of course, if you are writing a gambas app you can just 
SHELL "somecommand" FOR READ WRITE AS someprocess
a bunch of times to get a bunch of programs running.

Rob





More information about the User mailing list