Currently running the following code within a script on an Linux based Oracle 
Apps Server.  When script ran directly from linux it runs successfully.  Once 
we call the script using an Oracle forms Host call the script returns an error 
in the log file of "Bad file descriptor".  I  have confirmed in the log file 
that $file_name and blank.pdf exists , is readable and writable.  I have 
succesfully ran tests from a single oracle form.  The error message occurs in a 
multi-form environment.   Any help would be appreciated.


if (system("ghostscript -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite 
-sOutputFile=$cons_file_name $file_name blank.pdf") == 0)
{$success = 'true';}    
else
{$log_string .= "Error adding blank page to pdf $!\n";
$success = 'false';
}



E-MAIL CONFIDENTIALITY NOTICE: This communication and any associated
file(s) may contain privileged, confidential or proprietary
information or be protected from disclosure under law ("Confidential
Information").  Any use or disclosure of this Confidential Information,
or taking any action in reliance thereon, by any individual/entity
other than the intended recipient(s) is strictly prohibited.  This
Confidential Information is intended solely for the use of the
individual(s) addressed. If you are not an intended recipient, you
have received this Confidential Information in error and have an
obligation to promptly inform the sender and permanently destroy,
in its entirety, this Confidential Information (and all copies
thereof).  E-mail is handled in the strictest of confidence by
Allied National, however, unless sent encrypted, it is not a secure
communication method and may have been intercepted, edited or
altered during transmission and therefore is not guaranteed.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to