[Xorp-hackers] How to use shell script to control xorp shell

Pavlin Radoslavov pavlin at icir.org
Fri Aug 25 13:51:20 PDT 2006


> Can I write shell script to control xorp shell(xorpsh) from unix shell
>     script ? How I do it ?
>     EX.
>     #!/bin/sh
>     xorpsh <<!
>     show host os
>     !
>     But I found it show xorpsh not found
>     Why?

The "xorpsh" binary has to be in the execution path.
Alternatively, "xorpsh" should be replaced with
"/path/to/xorpsh".

I noticed that the above info is missing from the user manual, so I
just updated it.

Thanks,
Pavlin



More information about the Xorp-hackers mailing list