Problem with creating empty file

Daniel Kroker <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
Hello,

Example:

MAIN
DEFINE file CHAR(200)
DEFINE runtxt CHAR(500)
DEFINE l_errorval CHAR(500)

LET file = "text-txt.txt"

LET runtxt = "cat /dev/null > ", file
RUN runtxt CLIPPED
RETURNING l_errorval
IF aclfgl_sendfile_to_ui(file CLIPPED) THEN END IF
IF ui.vdc.execute(file CLIPPED) THEN END IF

END MAIN


In this example text-txt.txt is empty and were sent to the client.
Over the Protocoll i can see:

<COMMANDS>

<FILE NAME="text-txt.txt">mKG2t+j0BggQ</FILE>

</COMMANDS>

</ENVELOPE>


If i open the file with Notepad the file has the text: "˜½·èô" but i 
dont know why.
What is the problem with RUN and cat ?


-- 
Mit freundlichen Grüßen

i.A. Daniel kroker
VENTAS AG

VENTAS AG
Mexikoring 29
D-22297 Hamburg
Germany

[email protected]
www.ventas.de

Tel +49-40-32 33 34-0
Fax +49-40-32 33 34-38

VENTAS AG
Firmensitz: Mexikoring 29, 22297 Hamburg, Deutschland
Registergericht: Hamburg, HRB 80297
Ust.IdNr.: DE118686712
Vorstandsvorsitzender: Dipl.Ing. Alain Siverly
Aufsichtsratsvorsitzender: Dr. Olaf Rehme


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.