cancel
Showing results for 
Search instead for 
Did you mean: 

EXOS 'cat' utility

EXOS 'cat' utility

Dave_Hammers
Extreme Employee
To create a linux like 'cat' utility in EXOS 22.4 and later:

in the exshrc.xsf file add the following line (or create the exshrc.xsf file)

alias cat "run script shell.py cd /usr/local/cfg;cat"Then the next time you login, the 'cat' alias will be available.

E.g.
# cat exshrc.xsf
alias cat "run script shell.py cd /usr/local/cfg;cat"E.g.
Suppose there is a file my.pol.
# cat my.pol
entry one {
if {
source-address 1.1.1.1/32;
} then {
meter joe1;
}}
entry two {
if {
source-address 1.1.1.2/32;
} then {
meter joe1;
}}
5 REPLIES 5

Drew_C
Valued Contributor III
Since
code:
vi
is already available, a simpler line is:
code:
alias edit "vi"

GTM-P2G8KFN