EXOS 'cat' utility
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-10-2018 10:07 AM
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;
}}
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-10-2018 10:17 AM
Since
code:
is already available, a simpler line is: vi
code:
alias edit "vi"
