[Xorp-hackers] Hi,all. Is this a bug or just a mistake config?

cheng wan wancheng82 at gmail.com
Sun Nov 29 16:56:37 PST 2009


> Thank you, Bruce.
> The official document "rtrmgr.pdf"(Chapter 2.3.2) gave one example:
> foo {
> %set: program "/bin/echo -n ’$(@)' >> /tmp/file.txt";
> }
> What I wrote in test.tp was mostly like this.
> If I did not use "save" after "commit", everything is OK.
> What does "These command strings aren't guaranteed to be executed by a
> shell" mean?
> Does that mean Template Tree program Action can not support this?
>
> Best
> Robin
>
>
>
> 2009/11/29 Bruce Simpson <bms at incunabulum.net>
>
> Hi,
>>
>> You seem to be using shell redirection operators ('>>') inside a XORP
>> template file.
>>
>> These command strings aren't guaranteed to be executed by a shell, you are
>> probably better off using some other means of telling your external
>> program(s) which files to use (e.g. command line arguments).
>>
>> cheers,
>> BMS
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20091130/08b17c76/attachment.html 


More information about the Xorp-hackers mailing list