[liblouis-liblouisxml] Re: Return value of 1 from file2brl

  • From: Paul wood <paulw.torchtrust@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 26 Nov 2012 13:48:49 +0000

I concur with Keith. Try running a command to copy the '/tmp/1353932384.txt' to '/tmp/1353932384.brf' from what I know when php runs the command it has no path or other variables you would normally have in shell, so you need to include them in the commands php run

HTH
Paul

On 26/11/2012 1:06 PM, Greg Kearney wrote:
Web page.

Sent from my iPhone

Greg Kearney
Association for the Blind of Western Australia

On 26/11/2012, at 8:58 PM, Keith Creasy <kcreasy@xxxxxxx <mailto:kcreasy@xxxxxxx>> wrote:

It sounds like permissions on the files, either execute on file2brl or read on the input file. Are you running the PHP script from the console or from a web page?

Keith

Keith Creasy

Software Developer

American Printing House for the Blind

KCreasy@xxxxxxx <mailto:KCreasy@xxxxxxx>

Phone: 502.895.2405

Skype: keith537

*From:*liblouis-liblouisxml-bounce@xxxxxxxxxxxxx <mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx> [mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] *On Behalf Of *Greg Kearney
*Sent:* Monday, November 26, 2012 7:26 AM
*To:* liblouis-liblouisxml@xxxxxxxxxxxxx <mailto:liblouis-liblouisxml@xxxxxxxxxxxxx>
*Subject:* [liblouis-liblouisxml] Return value of 1 from file2brl

OK I finally have libloouis installed and working now we face a now issue. I have a web application in PHP which takes text and passes it to file2brl

everything works fin form the command line when I enter it from the shell

/usr/local/bin/file2brl -f /Library/WebServer/Documents/cbtbc/BrailleBlaster/programData/liblouisutdml/lbu_files/ink.cfg '/tmp/1353932384.txt' '/tmp/1353932384.brf'

However if I have PHP system run the same command I get a return value of 1 and no brf file is generated in /tmp

Any ideas out there?

Gregory Kearney | Manager Accessible Media
Association for the Blind of WA - Guide Dogs WA
PO Box 101, Victoria Park WA 6979 | 61 Kitchener Ave, Victoria Park WA 6100 Tel: 08 9311 8246 | Fax: 08 9361 8696 | www.guidedogswa.com.au <http://www.guidedogswa.com.au>
Tel: 307-224-4022 (North America)
Email: greg.kearney@xxxxxxxxxxxxxxxxxx <mailto:greg.kearney@xxxxxxxxxxxxxxxxxx>
Email: gkearney@xxxxxxxxx <mailto:gkearney@xxxxxxxxx>


--
Paulw.torchtrust signature

Paul Wood, Technical Services Leader
*Torch Trust*
Torch House, Torch Way,
Market Harborough, Leics. LE16 9HL, UK
Direct Line: *+44(0)1858 438269*
Tel: *+44(0)1858 438260*, Fax: *+44(0)1858 438275*
Email: paulw@xxxxxxxxxxxxxx <mailto:paulw@xxxxxxxxxxxxxx>
Website: www.torchtrust.org <http://www.torchtrust.org/>

____________________________________________________

Chief Executive: Dr Gordon Temple
Charity No. 1095904

Privileged/Confidential Information may be contained in this message.
If you are not the intended recipient please destroy this message
and kindly notify the sender by reply email. The computer from which
this mail originates is equipped with virus screening software.
However Torch Trust cannot guarantee that the mail and its attachments
are free from virus infection.

Other related posts: