U. Zinngrebe wrote:
> Jaimes,
> I never ever used SysAddMacro to reach external functions, and the
> first line starting with #! is convenient but not essential.
>
> Can you post more information about your computer ?
> It seems you lauch from the command prompt (and don't click on icons on the
> desktop).
>
> (1)
> Could you please run these commands and copy-paste the output ?
> uname -a
Linux jaime-ThinkPad-SL500 3.2.0-30-generic-pae #48-Ubuntu SMP Fri Aug
24 17:14:09 UTC 2012 i686 i686 i386 GNU/Linux
> whoami
jaime
> rexx -v (the first few lines)
Open Object Rexx Version 4.1.2
Build date: Aug 31 2012
Addressing Mode: 32
> which rexx
/usr/bin/rexx
> echo $PATH
./:/home/jaime/REXX:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/ooRexx:/usr/share/ooRexx
> help (the first few lines)
GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.
>
> (2)
> At the command prompt where you launch the main program, could you please
> copy-paste:
> the command to launch the main program
Hello
> echo $PWD
/home/jaime
> ls -l <directory+name-of-external-function>
total 204
-rwxrwxr-x 1 jaime jaime 3235 Sep 17 18:27 B2mmddyy
-rwxrwxr-x 1 jaime jaime 18809 Sep 19 18:13 Hello
-rwxrwxr-x 1 jaime jaime 18084 Sep 18 20:38 Hello~
-rwxrwxr-x 1 jaime jaime 503 Sep 17 18:29 Hhmmss2s
-rwxrwxr-x 1 jaime jaime 3791 Sep 17 18:53 JCCalJul
-rwxrwxr-x 1 jaime jaime 4468 Sep 17 18:24 JCDoM
-rwxrwxr-x 1 jaime jaime 2438 Sep 17 18:55 JCDoW
-rwxrwxr-x 1 jaime jaime 2850 Sep 17 18:25 JCEaster
-rwxrwxr-x 1 jaime jaime 3684 Sep 17 18:26 JCJulCal
-rwxrwxr-x 1 jaime jaime 1212 Sep 17 18:51 JCLepYer
-rwxrwxr-x 1 jaime jaime 2934 Sep 17 18:32 JCSort
-rw-rw-r-- 1 jaime jaime 2934 Sep 17 18:30 JCSort~
-rwxrwxr-x 1 jaime jaime 3078 Sep 17 18:27 Mmddyy2b
-rwxrwxr-x 1 jaime jaime 634 Sep 17 18:28 S2hhmmss
> a command to launch the external function directly
/home/jaime/REXX/JCSort: line 1: /bin: Is a directory
/home/jaime/REXX/JCSort: line 2: /bin: Is a directory
/home/jaime/REXX/JCSort: line 3: /bin: Is a directory
/home/jaime/REXX/JCSort: line 4: /bin: Is a directory
/home/jaime/REXX/JCSort: line 5: /bin: Is a directory
/home/jaime/REXX/JCSort: line 6: /bin: Is a directory
/home/jaime/REXX/JCSort: line 7: /bin: Is a directory
/home/jaime/REXX/JCSort: line 8: /bin: Is a directory
/home/jaime/REXX/JCSort: line 9: /bin: Is a directory
/home/jaime/REXX/JCSort: line 10: /bin: Is a directory
/home/jaime/REXX/JCSort: line 11: /bin/: Is a directory
/home/jaime/REXX/JCSort: line 12: /bin: Is a directory
/home/jaime/REXX/JCSort: line 13: /bin/: Is a directory
/home/jaime/REXX/JCSort: line 14: Parse: command not found
/home/jaime/REXX/JCSort: line 15: Do: command not found
/home/jaime/REXX/JCSort: line 16: Parse: command not found
/home/jaime/REXX/JCSort: line 17: End: command not found
/home/jaime/REXX/JCSort: line 19: Parse: command not found
/home/jaime/REXX/JCSort: line 20: syntax error near unexpected token `('
/home/jaime/REXX/JCSort: line 20: `direction = Left(direction, 1)'
> The result should look like
> uli@ulmo:~/oorexx> ./newTest
> uli@ulmo:~/oorexx> echo $PWD
> /home/uli/oorexx
> uli@ulmo:~/oorexx> ls -l ~/bin/mytest.rex
> -rw-r--r-- 1 uli users 5944 Sep 2 01:15 /home/uli/bin/mytest.rex
> uli@ulmo:~/oorexx> mytest
> If 'mytest' is not a typo you can use command-not-found to lookup the
> package that contains it, like this:
> cnf mytest
> uli@ulmo:~/oorexx> mytest.rex
> bash: /home/uli/bin/mytest.rex: Permission denied
>
> (3)
> From the main program, the line that calls the external function and the
> output of TRACE '?I' when that line was executed.
> The result could look like
>
jaime@jaime-ThinkPad-SL500:~$ Hello
310 *-* Call JCSort
>>> "0"
311 *-* Trace 'O'
>
> Cheers, Uli