Landscape トップページ | < 前の日 2003-09-05 2003-09-06 次の日 2003-09-07 > Landscape - エンジニアのメモ 2003-09-06 シェルスクリプトで直前のコマンドの終了コードをチェック 当サイト内を Google 検索できます * シェルスクリプトで直前のコマンドの終了コードをチェックこの記事の直リンクURL: Permlink | この記事が属するカテゴリ: [シェルスクリプト] 直前のコマンドの終了コードは $? という特殊変数に格納される。 こんな感じでテストできる。超便利だね。 if [ $? -ne 0 ]; then echo "Error"; else echo "OK"; fi
Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く