Specifying the rah and db2_all commands
You can specify rah command from the command line as the parameter, or in response to the prompt if you do not specify any parameter.
| & ; < > ( ) { } [ ] unsubstituted $
All special characters in the command can be entered normally (without being enclosed in quotation marks, except for \). If you require a \ in your command, you must type two backslashes (\\).
- On Linux and UNIX operating systems, you cannot include a single quotation mark (') in your command unless your command shell provides some way of entering a single quotation mark inside a singly quoted string.
- On Windows, you cannot include a single quotation mark (') in your command unless your command window provides some way of entering a single quotation mark inside a singly quoted string.
When you run any korn-shell shell-script that contains logic to read from stdin in the background, explicitly redirect stdin to a source where the process can read without getting stopped on the terminal (SIGTTIN message). To redirect stdin, you can run a script with the following form:
shell_script </dev/null &
if there is no input to be supplied.
In a similar way, always specify </dev/null
when
running db2_all in the background. For example:
db2_all ";run_this_command" </dev/null &
By doing this you can redirect stdin and avoid getting stopped on the terminal.
An alternative to this method, when you are not concerned about output
from the remote command, is to use the daemonize
option in
the db2_all prefix:
db2_all ";daemonize_this_command" &