Re: Linux
- Posted by Irv Mullins <irvm at ellijay.com> Feb 11, 2001
- 584 views
On Sun, 11 Feb 2001, you wrote: > is there a way to just click on a a *.exu file and have it associated > with exu so that it will automaticly run? Yes. The very FIRST line of your Euphoria prog must be: #!./euphoria/bin/exu and permissions should be set to read/write/execute. (Right click to set Properties, then Permissions - the program's icon will change to reflect it's new status as an executable file) You can then type the name of the file at a prompt, or click on the icon, and it'll run. You don't really need .bat files for just running programs, since it's so easy to make the Euphoria source itself executable. You might want to use one if you chain several different programs together. > or is there a Linux equivlant > to a *.bat file? BASH is the usual "command.com" for Linux, execept that BASH is more of a full-fledged "interpreter" of its own. There are probably a half-dozen other "shells" available for those who prefer different syntax: the original Bourne shell (sh), csh, tcsh, zsh which are "C shells", ksh and pdks, the "Korn shells", and rc, a c-like shell. With some care, you can write fairly complex programs with any one of these. Some or all steps in such a shell script might entail calling Euphoria programs (or C programs or other shell scripts....) Regards, Irv