Error on system() in fP 5.0.14 Win32 - Need Help

Bruce Easton bruce at stn.com
Wed Sep 1 18:02:39 PDT 2010


  Mark - Glad also to hear you solved it.  I'll have to keep track of 
this one - I'm sure
it'll bite me also sooner or later.

Bruce

On 9/1/10 8:50 PM, Fairlight wrote:
> 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->
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>



More information about the Filepro-list mailing list