sh (idb mode only)

Execute a shell command.

Syntax

sh string

Parameters

string

The command to execute.

Description

This command executes a call to an OS shell command.

When using the Console window in the GUI, the shell output appears in the shell window that invoked the debugger.

Example

The following examples are based on the command-line debugger, not on the GUI.

(idb) sh uname -s
Linux 
(idb)  

To execute more than one command at the shell, spawn a shell and enter commands, as shown in the following example:

(idb) sh bash -f
% ls out 
out 
% ls *.b 
recio.b 
stdio.b 
% exit 
(idb)  

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.