Calling shell commands from SP-Forth, Linux

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Calling shell commands from SP-Forth, Linux

Eduardo Costa
Nearly all implementations of Forth offer unix like shell services. For instance, one can issue shell commands from SwiftForth:

~/frt/SwiftForth$ bin/linux/sf
SwiftForth i386-Linux 3.4.5 03-Oct-2012
$ ls
bernd.f~  bnf.fs~  doc        lib      mbrad.f   sievebench.fs~
bin      brad.f   fib.f    LICENSE  mbrad.f~  src

Bigforth, gforth, Vfx Forth have equivalent methods of calling shell services. How to do external shell calls from SP-Forth, running under Linux? I suppose that one can call a dynamic library service to do the magic. Is there a library in the devel folder that I can include, in order to call the unix shell?

Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
Spf-dev mailing list
[hidden email]