Ops, I think I've been there. The problem is with 
parallel execution of script and HBIDE. HBIDE will 
call external process, but continue to run, so it 
will instantly delete the script, so the script 
will not run.

I remember fixing this once.

Try removing FERASE() call for the temporary 
external script to prove that.

Brgds,
Viktor

On 2010 Apr 8, at 13:30, Barry Jackson wrote:

> On 08/04/10 11:21, Barry Jackson wrote:
> 
>> 
>> So, now the problem seems to be the missing full path to hbmk2
> 
> Ignore that silly remark - hbmk2 is already in the path and should be found.
> 
> Something strange though.
> I paused hbide just after it wrote (and closed) the temp script.
> I found the script and ran it after displaying PATH and looking at the 
> script:-
> 
> [...@jackodesktop tmp]$ echo $PATH
> /usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/home/baz/Scripts:/home/baz/bin:/home/baz/SVN/harbour/bin/linux/gcc:/home/baz/SVN/harbour/lib/linux/gcc:/home/baz/SVN/harbour/include
> 
> [...@jackodesktop tmp]$ cat 7aqf54.sh
> #!/bin/sh
> export HB_COMPILER=gcc
> export PATH=$PATH:/home/baz/SVN/harbour/bin/linux/gcc
> export PATH=$PATH:/home/baz/SVN/harbour/lib/linux/gcc
> export PATH=$PATH:/home/baz/SVN/harbour/include
> export PATH=$PATH:/usr/bin/gcc:/usr/lib/gcc
> 
> [...@jackodesktop tmp]$ sh 7aqf54.sh
> (no errors reported)
> [...@jackodesktop tmp]$ echo $PATH
> /usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/home/baz/Scripts:/home/baz/bin:/home/baz/SVN/harbour/bin/linux/gcc:/home/baz/SVN/harbour/lib/linux/gcc:/home/baz/SVN/harbour/include
> [...@jackodesktop tmp]$
> 
> Note that $PATH is not affected by running the script.
> I thought it may be a permissions problem, or that it needed to be 
> executable, but
> [...@jackodesktop tmp]$ chmod +x 7aqf54.sh
> [...@jackodesktop tmp]$ ls -l 7aqf54.sh
> -rwxrwxr-x 1 baz baz  233 2010-04-08 11:47 7aqf54.sh
> Makes no difference. Still nothing is added to PATH.
> Running :-
> [...@jackodesktop tmp]$ export PATH=$PATH:/usr/bin/gcc:/usr/lib/gcc
> at the command line DOES add those to the path.
> 
> Baffled...
> 
> Since hbmk2 is already in my PATH, I do not understand why the build fails 
> (despite the the script not modifying the PATH).
> 
> OK got some painting to do so will ponder this while brushing :-)
> 
> Rgds
> Barry
> 
> 
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to