Execute a previous command

Use the ! command together with a number from the command history list to repeat a recent command. Use the !! command to repeat the most recent command.

Sample

This sample shows how to use the ! command:
history

        1:      select * from services.unManaged;
        2:      select * from services.unManaged where serviceName like 'dh';
        3:      select count(*) from services.unManaged;

!2

This executes the second command in the history list and produces the following output:

{
        serviceName='ncp_dh_dns';
        servicePath='$PRECISION_HOME/platform/$PLATFORM/bin/';
        argList=['-domain','NCOMS'];
        serviceId=23;
        processId=10734;
}
{
        serviceName='ncp_dh_snmp';
        servicePath='$PRECISION_HOME/platform/$PLATFORM/bin/';
        argList=['-domain','NCOMS'];
        serviceId=24;
        processId=10750;
}
{
        serviceName='ncp_dh_arp';
        servicePath='$PRECISION_HOME/platform/$PLATFORM/bin/';
        argList=['-domain','NCOMS'];
        serviceId=25;
        processId=10872;
}
{
        serviceName='ncp_dh_telnet';
        servicePath='$PRECISION_HOME/platform/$PLATFORM/bin/';
        argList=['-domain','NCOMS'];
        serviceId=52;
        processId=11424;
}
{
        serviceName='ncp_dh_ping';
        servicePath='$PRECISION_HOME/platform/$PLATFORM/bin/';
        argList=['-domain','NCOMS'];
        serviceId=67;
        processId=13399;
}
( 5 record(s) : Transaction complete )