Re: Problem with creating empty file
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WFpzu+64dKhQdicMNVReRihD2nNc=U9VpCbDKZFR=pA-w@mail.gmail.com> |
I do not get that here.. Running that program I get : <ENVELOPE ID="1" PID="7615"> <COMMANDS> <PROGRAMSTARTUP PROGRAMNAME="./x1" ID="0"> <ENV NAME="DBPATH" VALUE=":/home/aubit4gl/aubit4glsrc/tools:/home/aubit4gl/aubit4gl/tools:/home/aubit4gl/aubit4glsrc/incl:/home/aubit4gl/aubit4gl/aubit4gl/incl:."/> <ENV NAME="DBDATE" VALUE="dmy4/"/> <ENV NAME="DBMONEY" VALUE="#."/> <ENV NAME="A4GL_NUMERIC" VALUE=""/> <ENV NAME="DB_LOCALE" VALUE=""/> <ENV NAME="LANG" VALUE=""/> <ENV NAME="A4GL_VERSION" VALUE="1.2.33"/> <ENV NAME="XML_VERSION" VALUE="1.3"/> </PROGRAMSTARTUP> </COMMANDS> </ENVELOPE> <ENVELOPE ID="1" PID="7615"> <COMMANDS> <RUNINFO MODE="1" CMD="cat /dev/null > text-txt.txt" RUNCNT="1" STARTSTOP="1" /> </COMMANDS> </ENVELOPE> <ENVELOPE ID="1" PID="7615"> <COMMANDS> <RUNINFO MODE="1" CMD="cat /dev/null > text-txt.txt" RUNCNT="1" STARTSTOP="0" /> </COMMANDS> </ENVELOPE> <ENVELOPE ID="1" PID="7615"> <COMMANDS> <FILE NAME="text-txt.txt"></FILE> </COMMANDS> </ENVELOPE> <ENVELOPE ID="1" PID="7615"> <COMMANDS> <FRONTCALL MODULE="INTERNAL" NAME="ui.vdc.execute" EXPECT="1"><VS><V>text-txt.txt</V></VS></FRONTCALL> </COMMANDS> </ENVELOPE> <ENVELOPE ID="1" PID="7615"> <COMMANDS> <WAITFOREVENT/> </COMMANDS> </ENVELOPE> ^C<ENVELOPE ID="1" PID="7615"> <COMMANDS> <PROGRAMSTOP EXITCODE="0" ID="0"> </PROGRAMSTOP> </COMMANDS> </ENVELOPE> (This is from the command line with A4GL_UI=XML, but no AFGLSERVER set - so it just outputs to the standard output) On 21 March 2013 13:27, Daniel Kroker <[email protected]> wrote: > 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 > ------------------------------------------------------------------------------ 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