Sascha Alexander Jopen | 18 Jul 2012 15:14
Picon
Favicon

Command line parameters

Hi,

the click language specifications mentions, that the userlevel driver
supports specifying parameters for the router config on the command line:

Click programs such as userdriver and click-install allow parameters to
specified on the command line; these override any global parameters with
the same names.

Is this really implemented? I can't see how to do it.

Sascha
Eddie Kohler | 18 Jul 2012 15:25
Picon
Gravatar

Re: Command line parameters

Hi Sascha,

Try

click PARAMNAME=VALUE

e.g.

echo 'Message("$PARAM")' | click PARAM='Hi Sascha'

Eddie

On 7/18/12 9:14 AM, Sascha Alexander Jopen wrote:
> Hi,
>
> the click language specifications mentions, that the userlevel driver
> supports specifying parameters for the router config on the command line:
>
> Click programs such as userdriver and click-install allow parameters to
> specified on the command line; these override any global parameters with
> the same names.
>
> Is this really implemented? I can't see how to do it.
>
> Sascha
> _______________________________________________
> click mailing list
> click <at> amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
(Continue reading)

Sascha Alexander Jopen | 18 Jul 2012 18:26
Picon
Favicon

Re: Command line parameters

Thanks, Eddie, that's easy. I found the relevant code part in the
userlevel driver and will port this to ns3 as well.

Regards,
Sascha

Am 18.07.2012 15:25, schrieb Eddie Kohler:
> Hi Sascha,
> 
> Try
> 
> click PARAMNAME=VALUE
> 
> e.g.
> 
> echo 'Message("$PARAM")' | click PARAM='Hi Sascha'
> 
> Eddie
> 
> 
> On 7/18/12 9:14 AM, Sascha Alexander Jopen wrote:
>> Hi,
>> 
>> the click language specifications mentions, that the userlevel
>> driver supports specifying parameters for the router config on
>> the command line:
>> 
>> Click programs such as userdriver and click-install allow
>> parameters to specified on the command line; these override any
>> global parameters with the same names.
(Continue reading)


Gmane