Re: Parameters in command line

From: A. Sinan Unur (1usa_at_llenroc.ude.invalid)
Date: 02/20/05


Date: 20 Feb 2005 21:47:56 GMT

John Bokma <postmaster@castleamber.com> wrote in
news:Xns96039C7D6183Fcastleamber@130.133.1.4:

> Brian McCauley wrote:
>
>> yusufdestina wrote:
>>
>>> Can someone point me to a direction for this?
>>> I have an application that opens another perl execuatable file. [PAR]
>>> How can I pass vars to the perl appl.?
>>> ex: testfile.exe name=value ...
>>
>> It it confusing to use an .exe suffix on a Perl script.
>
> Read a bit more about PAR and pp and then you understand.

I am not so sure the answer to the OP's question has anything whatsoever to
do with PAR.

There are two possibilities:

1. testfile.exe's source is under the OP's control. In this case, brian's
advice applies.

2. testfile.exe's source is not under the OP's control. In this case, the
original language testfile.exe was written in and the fact that it was
compiled with PAR becomes irrelevant. If testfile.exe does expect and
handle parameters specified on the command line, then the OP can use the
system function to do so.

If testfile.exe is not designed and written to expect command line
parameters, then it is not possible to pass command line parameters to
testfile.exe.

To sum up,

If (1) applies, refactor code as per Brian's suggestion.
If (2) applies read testfile.exe's documentation and

perldoc -f system

This answer does not depend on the precise way in which testfile.exe came
to existence.

Sinan



Relevant Pages

  • Re: GENERAL: Formatting text in Linux?
    ... >>> You have to do it one paragraph at a time, ... >>> individual paragraphs with a single command. ... piped to par w50 with the! ... Here are some useful links about vi macros: ...
    (comp.editors)
  • Re: Passing a Date parameter to a Parametrized query
    ... Dim command As ADODB.command ... > The message still saying data type mismatched... ... >> Dim par As ADODB.Parameter ... >> Set par = New ADODB.Parameter ...
    (microsoft.public.access.modulesdaovba)
  • Re: Parameters in command line
    ... >> Read a bit more about PAR and pp and then you understand. ... Only that what comes out of pp *has* an exe ... > and handle parameters specified on the command line, ... refactor code as per Brian's suggestion. ...
    (comp.lang.perl.misc)
  • Re: PAR and pp
    ... It's hard to say for sure, but are you sure you installed PAR? ... this command will install it for you (it will let you ... then you probably don't have the Perl bin directory in your %PATH%. ...
    (comp.lang.perl.misc)
  • Re: treeView keydown
    ... control. ... TreeView2 tree; ... > I press ENTER when I'm on treeview control but nothing happens! ...
    (microsoft.public.dotnet.languages.csharp)