certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] CERTI-Devel Digest, Vol 80, Issue 5


From: Waléria Antunes David
Subject: Re: [certi-dev] CERTI-Devel Digest, Vol 80, Issue 5
Date: Thu, 21 Feb 2013 15:13:33 -0300

Hi,

Part of my code:
:exec1
echo %EXEC%billard.exe
"%EXEC%billard.exe" -n 1 -fTest -FTest.fed
goto finish

And this error:
C:\CERTI_3_4_0\exec>
executeCerti.bat m billard
0=executeCerti.bat
1=m
"C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
billard: '--name' ('-n') option required
Terminated - Normal


My complete code:

@echo off

rem ##############################
rem #     implementation/version   #
rem ##############################


rem #################################
rem #  check command line arguments #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME  #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute #######################
############################################
:execute
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG  #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program #
rem ############################
:exec1
echo %EXEC%billard.exe
"%EXEC%billard.exe" -n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end

Thanks,

On Thu, Feb 21, 2013 at 2:01 PM, <address@hidden> wrote:
Send CERTI-Devel mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/certi-devel
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CERTI-Devel digest..."


Today's Topics:

   1.  Compiling and Running the Federate (Wal?ria Antunes David)
   2. Re:  Compiling and Running the Federate (Jan-Patrick Osterloh)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Feb 2013 12:37:04 -0300
From: Wal?ria Antunes David <address@hidden>
To: address@hidden
Subject: [certi-dev] Compiling and Running the Federate
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="windows-1252"

Hi all,


I'm developing a federated executeCerti.bat to run so I did this:

I created two .bat:
1-) confvars.bat (containing the environment variables necessary)
2-) executeCerti.bat (It calls the confvars.bat and runs the federated
model)

I created a directory called \etc in C:\CERTI_3_4_0\etc and put the
confvars.bat this directory \etc.
And I created a directory called \exec in C:\CERTI_3_4_0\exec and put the
executeCerti.bat this directory \exec

But when i try to execute in Prompt Command:
1) Run RTIG *(ok - **this running)*
C:\CERTI_3_4_0\exec>executeCerti.bat r
0=executeCerti.bat
1=r
CERTI RTIG 3.4.0 - Copyright 2002-2008  ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CERTI RTIG up and running ...

2) Run the billard program*( ERROR)*
C:\CERTI_3_4_0\exec>executeCerti.bat m billard
0=executeCerti.bat
1=m
"C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
billard: '--name' ('-n') option required
Terminated - Normal

I don't understand this error. Why?

See my code: executeCerti.bat

@echo off

rem ##############################
rem #     implementation/version           #
rem ##############################


rem #################################
rem #  check command line arguments      #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME       #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute        #######################
############################################
:execute
SHIFT
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG       #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program           #
rem ############################
:exec1
echo "%EXEC%billard.exe
"%EXEC%billard.exe" ?n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end

Can you help me??

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/certi-devel/attachments/20130220/a59d262b/attachment.html>

------------------------------

Message: 2
Date: Wed, 20 Feb 2013 20:46:54 +0100
From: "Jan-Patrick Osterloh" <address@hidden>
To: CERTI development discussions <address@hidden>
Subject: Re: [certi-dev] Compiling and Running the Federate
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="UTF-8"; format=flowed

Hi,

Am 20. Februar 2013 16:37:04 schrieb Wal?ria Antunes David
<address@hidden>:
> "%EXEC%billard.exe" ?n 1 -fTest -FTest.fed

Is that a -n in your bat file? In my mail the dash looks different to
the dash in -fTest. If it is a different character, the argument may
not be parsed correctly. I cannot test it right now, as I don't have
the code here.

Bye
Jan-Patrick





------------------------------

_______________________________________________
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel


End of CERTI-Devel Digest, Vol 80, Issue 5
******************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]