<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenGroove &#187; shell</title>
	<atom:link href="http://open-groove.net/category/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-groove.net</link>
	<description>Linux,MySQL,Apache. . . and more!</description>
	<lastBuildDate>Sun, 05 Feb 2012 11:09:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>シェルのif文でAND条件を複数指定したい</title>
		<link>http://open-groove.net/shell/if-and-or/</link>
		<comments>http://open-groove.net/shell/if-and-or/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 12:22:40 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10656</guid>
		<description><![CDATA[シェルのif文でAND条件を指定するには以下のように"-a"を付与する。（OR条件なら-o）]]></description>
		<wfw:commentRss>http://open-groove.net/shell/if-and-or/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>シェルの戻り値チェック</title>
		<link>http://open-groove.net/shell/return-check/</link>
		<comments>http://open-groove.net/shell/return-check/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 15:00:32 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10595</guid>
		<description><![CDATA[シェル実行結果の戻り値は$?で判定する。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/return-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今さら知ったCronリダイレクトの誤り</title>
		<link>http://open-groove.net/shell/cron-dev-null/</link>
		<comments>http://open-groove.net/shell/cron-dev-null/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 13:00:43 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10553</guid>
		<description><![CDATA[Cronで、標準出力も標準エラー出力も抑制する。よく利用する処理だと思うが、正しいのは以下のどちらか。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/cron-dev-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sendmailでメール送信するスクリプト</title>
		<link>http://open-groove.net/shell/mail-sendmail/</link>
		<comments>http://open-groove.net/shell/mail-sendmail/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 13:30:06 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10474</guid>
		<description><![CDATA[スクリプトという程のものでもないのだが・・・、他の処理と組み合わせてメール送信する時なんかに呼び出して使いたいな、と。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/mail-sendmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>echoコマンドの改行処理など</title>
		<link>http://open-groove.net/shell/echo-tips/</link>
		<comments>http://open-groove.net/shell/echo-tips/#comments</comments>
		<pubDate>Sun, 29 May 2011 07:00:18 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10329</guid>
		<description><![CDATA[「echoで改行しないのってどうするんだっけ・・・」「echoで空行いれるのってどうするんだっけ・・・」何回シェルに書いていても忘れてしまう、こういうちょっとした処理。いい加減覚えよう、、、と言うだけ虚しいのでここにメモ。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/echo-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>seqコマンドを利用した繰り返し処理</title>
		<link>http://open-groove.net/shell/for-seq/</link>
		<comments>http://open-groove.net/shell/for-seq/#comments</comments>
		<pubDate>Sun, 08 May 2011 15:00:38 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=10252</guid>
		<description><![CDATA[seqはfor文と相性がよいコマンドで、連続した数値を自動的に生成しリスト化してくれる。繰り返し処理を実行させたい時に便利。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/for-seq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>awkの基本形</title>
		<link>http://open-groove.net/shell/awk-basic/</link>
		<comments>http://open-groove.net/shell/awk-basic/#comments</comments>
		<pubDate>Sun, 30 May 2010 15:00:19 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=9340</guid>
		<description><![CDATA[シェルに組み込むこともよくあるであろうスクリプト言語、awkについてあらためて基本をまとめてみる。BIGINはスクリプトを初期化する働きがある。ENDに伴うアクションはawkが処理を終えた後に一度だけ実行される。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/awk-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cronでシェルスクリプトが動作しない時</title>
		<link>http://open-groove.net/shell/cron-error/</link>
		<comments>http://open-groove.net/shell/cron-error/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 16:00:28 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=8804</guid>
		<description><![CDATA[バッチ処理用にシェルスクリプトを作成したら、通常cronに登録する前に手動で動作確認をするだろう。手動だと上手くいったのに、cronだと動作しない、あるいは一部がエラーになる、という状態になったら。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/cron-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>容量の単位を変換するシェル</title>
		<link>http://open-groove.net/shell/unit-conversion/</link>
		<comments>http://open-groove.net/shell/unit-conversion/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 15:45:00 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=8902</guid>
		<description><![CDATA[容量の単位を変換するシェルの例。]]></description>
		<wfw:commentRss>http://open-groove.net/shell/unit-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>バックグラウンドジョブをkillするシェル</title>
		<link>http://open-groove.net/shell/kill-bg-job/</link>
		<comments>http://open-groove.net/shell/kill-bg-job/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 15:30:00 +0000</pubDate>
		<dc:creator>Le Blue</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://open-groove.net/?p=8901</guid>
		<description><![CDATA[バックグラウンドジョブのプロセスをkillするためのシェルをつくってみた。 以下のスクリプトでは、TERMでkillできなかった時のためQUIT,KILLをシグナルとして代入できるようにし、バックグラウンドジョブをカウントして0ならそのまま終了。ジョブがあれば、「kill シグナル PID」が実行される。ジョブのプロセスが終了するのに少し時間がかかる可能性があるため、最後にsleepでシェルを一時停止させる。 killjob.sh 練習用に、ループ状態を作り出すためのシェルloop.shを作成。バックグラウンドで実行し、スクリプトでkillしてみる。ジョブ制御はシェル単位なので、現在のシェルのジョブを終了するにはsourceか.で実行する必要がある。 実行例 $ ./loop.sh &#038; [1] 8085 $ $ jobs [1]+ Running ./loop.sh &#038;　←ジョブ実行中 $ $ . killjob.sh [1]+ Terminated ./loop.sh　←ジョブが終了した $ $ jobs $]]></description>
		<wfw:commentRss>http://open-groove.net/shell/kill-bg-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

