版次注意事項


|7.8 Appendix D. Issuing Commands to Multiple Database Partition Servers

| | |

|At the bottom of the section "Specifying the Command to Run", add |the following:

|When you run any korn-shell shell-script which contains logic to read from |stdin in the background, you should 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, you should 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" &


[ 頁面頂端 | 前一頁 | 下一頁 | 目錄 | 索引 ]