Error on system() in fP 5.0.14 Win32 - Need Help
Fairlight
fairlite at fairlite.com
Wed Sep 1 17:50:15 PDT 2010
You'll never BELIEVE what Scott Walker said here...:
> Thinking out loud.
>
> What's the value of hf?
The value of hf is just the second path in the command...the file I want
the command to store the data to.
> Try a show of ut just before the system command to see that it contains
> everything you think it does.
It does.
I just found the problem, actually.
filePro's system() function apparently relies on Windows API functionality
that entirely ignores file extensions for running programs like *.pl perl
scripts. So even if you associated .pl with the full path to perl.exe, it
won't run unless you supply the interpreter path first.
If you change this:
Then: ut="f:/filepro/cgi_control/utcstamp.pl"{hf
...to this:
Then: ut="c:/perl/bin/perl.exe f:/filepro/cgi_control/utcstamp.pl"{hf
...suddenly it works.
*sigh* I'm annoyed, but at least I'm no longer hung up on that mysterious
crash. The comspec terminology kept nagging at me--why wasn't that valid?
Because it's not a valid executable in its own right, it's associated with
an interpreter.
Thanks for the attempt to help, Scott!
Bests,
mark->
More information about the Filepro-list
mailing list