[vox-tech] How do i refer my system with IP and make sure that its accessible from windows(server is running there)
karthikeyan
vox-tech@lists.lugod.org
Tue, 16 Dec 2003 16:46:49 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_041F_01C3C3F4.336A31E0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi,
<why>
I am running a shell program which after setting some variables
with values invokes a java program and pass it some parameters.
Few of the parameters requires Input/Output file location. Which
can be in the same system or a different Linux machine.
</why>
I am pasting the shell file I wrote(which ofcourse doesn't work)
Unix Shell file
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#!/bin/bash
# 192.168.0.115(points to server)
# 192.168.0.44 (is this machine)
javac -d . com/enigma/client/*.java
javac -d . com/enigma/common/*.java
export Host=3D192.168.0.115=20
export Port=3D8080
export InputFile=3D//192.168.0.44/Enigma/input/xml/Chapter30sample.xml
export OutputPath=3D//192.168.0.44/outputXML/
export programName=3DDaniel_rajesh
export logoPath=3D//192.168.0.44/Enigma/input/images/Goodrichlogo.gif
export userType=3DIPC
export userRev=3D2
java -DHost=3D$Host -DPort=3D$Port com.enigma.client.PETClient -input =
$InputFile -type $userType -rev $userRev -out $OutputPath -param =
_3C_BookName $programName -param _3C_UserDef1 $logoPath
The above shell file is the replacement for the below DOS batch =
file(which works)
Dos Batch file
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
javac -d .\ .\com\enigma\client\*.java
javac -d .\ .\com\enigma\common\*.java
set Host=3D192.168.0.115
set Port=3D8080
set InputFile=3D\\192.168.0.44\Enigma\input\xml\Chapter30sample.xml
set OutputPath=3D\\192.168.0.44\outputXML\
set programName=3DDaniel_rajesh
set logoPath=3D\\192.168.0.44\Enigma\input\images\Goodrichlogo.gif
set userType=3DIPC
set userRev=3D2
java -DHost=3D%Host% -DPort=3D%Port% com.enigma.client.PETClient -input =
%InputFile% -type %userType% -rev %userRev% -out %OutputPath% -param =
_3C_BookName %programName% -param _3C_UserDef1 %logoPath%
Any solutions hints would be of great help.
Have a great day.
Karthikeyan B
------=_NextPart_000_041F_01C3C3F4.336A31E0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><why><BR> I am =
running a=20
shell program which after setting some variables<BR>with values invokes =
a java=20
program and pass it some parameters.<BR>Few of the parameters requires=20
Input/Output file location. Which<BR>can be in the same system or =
a=20
different Linux machine.<BR></why></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I am pasting the shell file I =
wrote(which ofcourse=20
doesn't work)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Unix Shell =
file<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#!/bin/bash</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2># 192.168.0.115(points to server)<BR># =
192.168.0.44=20
(is this machine)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>javac -d . =
com/enigma/client/*.java<BR>javac -d .=20
com/enigma/common/*.java</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>export Host=3D192.168.0.115 <BR>export=20
Port=3D8080<BR>export=20
InputFile=3D//192.168.0.44/Enigma/input/xml/Chapter30sample.xml<BR>export=
=20
OutputPath=3D//192.168.0.44/outputXML/<BR>export=20
programName=3DDaniel_rajesh<BR>export=20
logoPath=3D//192.168.0.44/Enigma/input/images/Goodrichlogo.gif<BR>export =
userType=3DIPC<BR>export userRev=3D2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>java -DHost=3D$Host -DPort=3D$Port=20
com.enigma.client.PETClient -input $InputFile -type $userType -rev =
$userRev -out=20
$OutputPath -param _3C_BookName $programName -param _3C_UserDef1=20
$logoPath</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The above shell file is the replacement =
for the=20
below DOS batch file(which works)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Dos Batch =
file<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV> </DIV><FONT face=3DArial size=3D2>
<DIV><BR>javac -d .\ .\com\enigma\client\*.java<BR>javac -d .\=20
.\com\enigma\common\*.java</DIV>
<DIV> </DIV>
<DIV>set Host=3D192.168.0.115<BR>set Port=3D8080<BR>set=20
InputFile=3D\\192.168.0.44\Enigma\input\xml\Chapter30sample.xml<BR>set=20
OutputPath=3D\\192.168.0.44\outputXML\<BR>set =
programName=3DDaniel_rajesh<BR>set=20
logoPath=3D\\192.168.0.44\Enigma\input\images\Goodrichlogo.gif<BR>set=20
userType=3DIPC<BR>set userRev=3D2</DIV>
<DIV> </DIV>
<DIV>java -DHost=3D%Host% -DPort=3D%Port% com.enigma.client.PETClient =
-input=20
%InputFile% -type %userType% -rev %userRev% -out %OutputPath% -param=20
_3C_BookName %programName% -param _3C_UserDef1 %logoPath%</DIV>
<DIV> </DIV>
<DIV>Any solutions hints would be of great help.</DIV>
<DIV> </DIV>
<DIV>Have a great day.</DIV>
<DIV> </DIV>
<DIV>Karthikeyan B</DIV></FONT></FONT></DIV></BODY></HTML>
------=_NextPart_000_041F_01C3C3F4.336A31E0--