
Basic System Management
83
Software Configuration Guide, Revision 1.03
------------------------------------------------------------
Context: router
2001-03-12T08:24:15 : First start
2002-03-12T08:38:37 : First start
2002-03-12T10:37:31 : First start
10.13 Controlling Command Execution
The SmartWare command shell includes a basic set of commands that allow you to control the
execution of other running commands. In SmartWare the commands
jobs
and
fg
are used for such
purposes. The command
jobs
lists all running commands, and
fg
allows switching back a suspended
command to the foreground. Moreover using
Ctrl-Z
suspends an active command and lets the
system prompt reappear. With
Ctrl-C
the currently active command can be terminated.
Procedure
To suspend an active command, list the running commands, switching back a suspended command,
and terminat a currently active command
Mode
Administrator execution
Command
Purpose
Step 1
Execute the first command
Step 2
node
#<Ctrl-Z>
Suspend the active command and get system
prompt back
Step 3
Execute the second command
Step 4
node
#jobs
Shows the currently running commands
Step 5
node
#fg
jobid
Brings job with
jobid
back to foreground
Step 6
node
#<Ctrl-C>
Terminates the the currently running command
Example: Controlling Command Execution
The following example shows how to suspend an active command, list the running commands,
switch back a suspended command and terminate a currently active command on your device, if you
start from the configuration mode.
SN>
ping 172.16.36.80 1000 timeout 3
Sending 1000 ICMP echo requests to 172.16.36.80, timeout is 3
seconds:
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Ctrl-Z
suspend active command
% Suspended
System prompt reappears and is ready to execute further commands
SN>
show ip interface