You are on page 1of 1

Example of running a shell command in CLI operational mode:

user@router> start shell command "ls -al /var/tmp"


total 52
drwxrwxrwt 8 root field 512 Feb 21 15:27 .
drwxr-xr-x 33 root wheel 1024 Jul 14 2010 ..
drwxr-xr-x 2 root field 512 Jan 1 2010 gres-tp
drwxrwxrwx 2 root wheel 512 Jul 14 2010 install
-rw-r--r-- 1 root field 46 Jul 14 2010 kmdchk.log
-r--r--r-- 1 root field 237 Feb 21 13:44 preinstall_boot_loader.conf
drwxrwxrwt 2 root wheel 512 Jan 1 2010 vi.recover

You can specify which shell (csh or sh) as shown in the example below:

user@router> start shell ?


Possible completions:
<[Enter]> Execute this command
csh Start C shell
sh Start Bourne-style shell (really ash)
user Start shell as another user
| Pipe through a command

user@router> start shell csh command "ls -al /var/tmp"


total 52
drwxrwxrwt 8 root field 512 Feb 21 15:27 .
drwxr-xr-x 33 root wheel 1024 Jul 14 2010 ..
drwxr-xr-x 2 root field 512 Jan 1 2010 gres-tp
drwxrwxrwx 2 root wheel 512 Jul 14 2010 install
-rw-r--r-- 1 root field 46 Jul 14 2010 kmdchk.log
-r--r--r-- 1 root field 237 Feb 21 13:44 preinstall_boot_loader.conf
drwxrwxrwt 2 root wheel 512 Jan 1 2010 vi.recover
matable networking and security solutions, with open frameworks, APIs, and
toolkits.

You might also like