RE: Passing a value from Unix into 4GL ?
Posted in 2004
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-2265ee58-3cf2-4d2b-b315-8fb395ba4824 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C43E90.F7A0F4B0" ------_=_NextPart_001_01C43E90.F7A0F4B0 Content-Type: text/plain Check the "RUN" command. Run the script, that get the value, then runs a 4gl that accepts the value as a parameter that loads a table. Wayne Martin Database Administrator Kmart Corporation -----Original Message----- From: Dirk Moolman [mailto:DirkM@mxgroup.co.za] Sent: Thursday, May 20, 2004 11:57 AM To: informix-list@iiug.org Subject: Passing a value from Unix into 4GL ? I am searching the net, but can't find an answer yet. How can I run a 4GL, that will run a Unix command, and then keep the result of the Unix command in a variable in the 4GL ? Example: Let's say I have a script that does a word count (wc) on a file. I want to run this script from a 4GL program, and then use the result of the word count in the 4GL. Should be simple, but I don't know how ... Dirk Moolman Database and Unix Administrator MXGROUP "People demand freedom of speech as a compensation for the freedom of thought which they seldom use." -Kierkegaard _____ << ella for Spam Control >> has removed 976 Spam messages and set aside 515 Newsletters for me You can use it too - and it's FREE! www.ellaforspam.com <http://www.ellaforspam.com> ----------------------------------------- This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. ------_=_NextPart_001_01C43E90.F7A0F4B0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <HTML>=0D=0A<BODY>=0D=0A<html>=0D=0A=0D=0A<head>=0D=0A<META HTTP-EQUIV=3D"C= ontent-Type" CONTENT=3D"text/html; charset=3DUS-ASCII">=0D=0A=0D=0A=0D=0A<m= eta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">=0D=0A=0D=0A<= style>=0D=0A<!--=0D=0A /* Font Definitions */=0D=0A @font-face=0D=0A {font-= family:Tahoma;=0D=0A panose-1:2 11 6 4 3 5 4 4 2 4;}=0D=0A /* Style Definit= ions */=0D=0A p=2EMsoNormal, li=2EMsoNormal, div=2EMsoNormal=0D=0A {margin:= 0in;=0D=0A margin-bottom:=2E0001pt;=0D=0A font-size:12=2E0pt;=0D=0A font-fa= mily:"Times New Roman";}=0D=0Aa:link, span=2EMsoHyperlink=0D=0A {color:blue= ;=0D=0A text-decoration:underline;}=0D=0Aa:visited, span=2EMsoHyperlinkFoll= owed=0D=0A {color:purple;=0D=0A text-decoration:underline;}=0D=0Ap=2EMsoPla= inText, li=2EMsoPlainText, div=2EMsoPlainText=0D=0A {margin:0in;=0D=0A marg= in-bottom:=2E0001pt;=0D=0A font-size:10=2E0pt;=0D=0A font-family:"Courier N= ew";}=0D=0Aspan=2EEmailStyle18=0D=0A {font-family:Arial;=0D=0A color:navy;}= =0D=0A@page Section1=0D=0A {size:8=2E5in 11=2E0in;=0D=0A margin:1=2E0in 77= =2E95pt 1=2E0in 77=2E95pt;}=0D=0Adiv=2ESection1=0D=0A {page:Section1;}=0D= =0A-->=0D=0A</style>=0D=0A=0D=0A</head>=0D=0A=0D=0A<body lang=3DEN-US link= =3Dblue vlink=3Dpurple>=0D=0A=0D=0A<div class=3DSection1>=0D=0A=0D=0A<p cla= ss=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=3D'font= -size:=0D=0A10=2E0pt;font-family:Arial;color:navy'> </span></font></p>= =0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><= span style=3D'font-size:=0D=0A10=2E0pt;font-family:Arial;color:navy'>Check = the "RUN" command=2E</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><fon= t size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:=0D=0A10=2E0p= t;font-family:Arial;color:navy'> </span></font></p>=0D=0A=0D=0A<p clas= s=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=3D'font-= size:=0D=0A10=2E0pt;font-family:Arial;color:navy'>Run the script, that get = the value, then runs=0D=0Aa 4gl that accepts the value as a parameter that = loads a table=2E</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font si= ze=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:=0D=0A10=2E0pt;fo= nt-family:Arial;color:navy'> </span></font></p>=0D=0A=0D=0A<p class=3D= MsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size= :=0D=0A10=2E0pt;font-family:Arial;color:navy'> </span></font></p>=0D= =0A=0D=0A<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><spa= n style=3D'font-size:=0D=0A10=2E0pt;font-family:Arial;color:navy'> </s= pan></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 color=3Dnavy= face=3DArial><span style=3D'font-size:=0D=0A10=2E0pt;font-family:Arial;col= or:navy'> </span></font></p>=0D=0A=0D=0A<div>=0D=0A=0D=0A<p class=3DMs= oNormal><em><i><font size=3D3 color=3Dnavy face=3DArial><span=0D=0Astyle=3D= 'font-size:12=2E0pt;font-family:Arial;color:navy'>Wayne Martin</span></font= ></i></em></p>=0D=0A=0D=0A<p class=3DMsoNormal><em><i><font size=3D3 color= =3Dnavy face=3DArial><span=0D=0Astyle=3D'font-size:12=2E0pt;font-family:Ari= al;color:navy'>Database Administrator</span></font></i></em></p>=0D=0A=0D= =0A<p class=3DMsoNormal><em><i><font size=3D3 color=3Dnavy face=3DArial><sp= an=0D=0Astyle=3D'font-size:12=2E0pt;font-family:Arial;color:navy'>Kmart Cor= poration</span></font></i></em></p>=0D=0A=0D=0A</div>=0D=0A=0D=0A<p class= =3DMsoNormal style=3D'margin-left:=2E5in'><font size=3D2 face=3DTahoma><spa= n=0D=0Astyle=3D'font-size:10=2E0pt;font-family:Tahoma'>-----Original Messag= e-----<br>=0D=0A<b><span style=3D'font-weight:bold'>From:</span></b> Dirk M= oolman=0D=0A[mailto:DirkM@mxgroup=2Eco=2Eza] <br>=0D=0A<b><span style=3D'fo= nt-weight:bold'>Sent:</span></b> </span></font><font size=3D2 face=3DTahoma= ><span style=3D'font-size:10=2E0pt;font-family:Tahoma'>Thursday, May=0D=0A = 20, 2004</span></font><font size=3D2 face=3DTahoma><span style=3D'font-size= :10=2E0pt;=0D=0Afont-family:Tahoma'> </span></font><font size=3D2 face=3DTa= homa><span=0D=0A style=3D'font-size:10=2E0pt;font-family:Tahoma'>11:57 AM</= span></font><font=0D=0Asize=3D2 face=3DTahoma><span style=3D'font-size:10= =2E0pt;font-family:Tahoma'><br>=0D=0A<b><span style=3D'font-weight:bold'>To= :</span></b> informix-list@iiug=2Eorg<br>=0D=0A<b><span style=3D'font-weigh= t:bold'>Subject:</span></b> Passing a value from Unix=0D=0Ainto 4GL ?</span= ></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:=2E5in'><= font size=3D3 face=3D"Times New Roman"><span=0D=0Astyle=3D'font-size:12=2E0= pt'> </span></font></p>=0D=0A=0D=0A<p class=3DMsoPlainText style=3D'ma= rgin-left:=2E5in'><font size=3D2 face=3D"Co