Reference Manual |
NAME
sh - invoke a subshell to interpret commandsSYNOPSIS
sh filename [arg]+DESCRIPTION
sh -c|C "command arg1 arg2 ..."
Command sh creates a separate, new invocation of the NAT32 command interpreter shell.SEE ALSO
Sh is used to execute command scripts with the input taken from file filename. However, recursive invocation of interactive shells works as expected - the user interacts with the innermost (most recent) shell, returning to the next outer shell after the inner shell terminates.Argument -c forces the shell to use the command string as input. For example, the command:
sh -c "echo testing 1 2 3"invokes the shell to execute the command echo testing 1 2 3 in a separate thread, producing the string testing 1 2 3 on standard output.Argument -C is similar, except that the command thread is created in the suspended state. A subsequent resume command is needed in order to execute the thread:
resume echoIf the command string is the name of a script file followed by arguments, those arguments are available to commands within the script file via the placeholders $1 for arg1, $2 for arg2 and so on.
nat32 resume shell exec