1. MAKIZOU.COM
  2. Linuxコマンド・リファレンス

wait プロセスおよびジョブの終了を待つ – Linuxコマンド

add to hatenahatena.comment(0)add to del.icio.us(0)add to livedoor.clip(0)add to Yahoo!Bookmark(0)Total: 0

書式

wait [プロセスID]

wait [ジョブ番号]

説明

バックグラウンドで実行中のプロセスまたはジョブの終了を待ちます。

プロセスIDまたはジョブ番号を指定しなかった場合は、実行中の全バックグラウンド、プロセスの終了を待ちます

オプション

ジョブ番号
ジョブ番号の場合は番号の前に%が必要

サンプル

例1)grep後、ソートを行う

$ grep "Googlebot" access_log > temp.txt & ↵
[1] 4649
$ wait 1; sort temp.txt > result.txt
この記事は参考になりましたか?
1つ星2つ星3つ星4つ星5つ星
Loading ... Loading ...
日付2008年10月06日
カテゴリLinuxコマンド・リファレンス
ページビュー2,274PV
add to hatenahatena.comment(0)add to del.icio.us(0)add to livedoor.clip(0)add to Yahoo!Bookmark(0)Total: 0
トラックバック(0)
コメント(0)

トラックバック用URL

コメント

使用できるHTMLタグ
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">