[Freeswitch-users] JS File Operation Error with latest FS

Brian Foster bdfoster at endigotech.com
Sat Jun 9 01:09:08 MSD 2012


Too many #'s, hole is only 4 letters.

Brian Foster
Endigo Computer LLC

Sent from a mobile device.
On Jun 8, 2012 4:16 PM, "Jason Moran" <jmoran at secureachsystems.com> wrote:

>  A spidermonkey File operation (often) causes the output of “ASS #####”
> followed by a “File operation pclose failed” error now that I’ve done a
> make current (last  update was 4 weeks ago).   The code puts a 0 or 1 into
> the variable fdFoundFile for later testing. This has worked for months
> until the make current.  Now it fails with the pclose error 4/5 times.****
>
> ** **
>
> CODE:****
>
>     console_log("info","-3-\n");****
>
> //Do a check to make sure we can read the file ****
>
> var fd = new File("|[ -f "+myFileName+" ] && echo 1 || echo 0");****
>
>     console_log("info","-4-\n");****
>
> fd.open("read");****
>
>     console_log("info","-5-\n");****
>
> var fdFoundFile = fd.read(1);****
>
>     console_log("info","-6-\n");****
>
> fd.close();****
>
>     console_log("info","-7-\n");****
>
> ** **
>
> LOG:****
>
> 2012-06-08 15:52:14.717917 [INFO] Testcall.js:1 -3-****
>
> 2012-06-08 15:52:14.717917 [INFO] Testcall.js:1 -4-****
>
> 2012-06-08 15:52:14.717917 [INFO] Testcall.js:1 -5-****
>
> ASS 30937****
>
> 2012-06-08 15:52:14.717917 [INFO] Testcall.js:1 -6-****
>
> 2012-06-08 15:52:14.717917 [ERR] Testcall.js:258  Error: File operation
> pclose failed****
>
> ** **
>
> The # following “ASS” always changes and keeps on increasing.****
>
> ** **
>
> Thanks,
> Jason M****
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120608/e9c51a38/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list