用途
rpyjob
コマンドは、入力または支援をリクエストするジョブに応答する場合に使用します。このタイプのジョブを表示するには、lsjobコマンドで--inputrequest
を指定します。ジョブからの入力リクエスト内容を確認するには、catxcrコマンドを実行します。
前提条件
別ユーザーのジョブのプロンプトに応答するには、所有者を問わないジョブの変更(modify any job, regardless of its owner)権を備えている必要があります。自身のジョブのプロンプトに応答するには、ユーザーが所有するジョブの変更(modify any jobs owned by user)権を備えている必要があります。
構文
rpyjob::=
rpy•job --reply/-r text job-id ...
意味
プロンプトに対する応答テキストを指定します。空白が含まれる場合は、応答を引用符で囲みます。
応答を送信するジョブのIDを指定します。
例
例2-145では、lsjobを使用して支援をリクエストしているジョブを表示し、その後で、catxcrを実行してジョブadmin/7.1
の記録を表示しています。
記録では、バックアップ・ジョブに使用可能なテープがライブラリに存在しないことが示されています。catxcr
の実行後に[Enter]キーを押すと、obtool
プロンプトに戻ります。
例2-145 支援をリクエストしているジョブに関する情報の表示
ob> lsjob --inputrequest --long admin/7.1: Type: backup brhost2 Level: full Family: (null) Scheduled time: none State: running since 2005/05/09.12:38 Priority: 100 Privileged op: no Run on host: brhost2 Attempts: 1 ob> catxcr --tail 12 admin/7.1 End of tape has been reached. Please wait while I rewind and unload the tape. The Volume ID of the next tape to be written is VOL000005. The tape has been unloaded. obtar: couldn't perform auto-swap - can't find usable volume in library (OB device mgr) Enter a command from the following list: load <n> .. load the tape from element <n> into the drive unload <n> .. unload the tape from the drive into element <n> help .. display other commands to modify drive's database go .. to use the tape you selected quit .. to give up and abort this backup or restore :
例2-146では、新しいボリュームをライブラリに挿入し、その後で、rpyjob
を2つのオプションload 3
およびgo
で使用して応答しています。lsjob
に対する--inputrequest
の指定では、NULL応答が生成されています。これは、入力をリクエストするジョブが存在しないことを意味しています。