<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Migrating shell scripts</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/migrating-shell-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/migrating-shell-scripts/</link>
	<description></description>
	<pubDate>Sat, 28 Nov 2009 10:38:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Petkoa</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/migrating-shell-scripts/#comment-55486</link>
		<dc:creator>Petkoa</dc:creator>
		<pubDate>Mon, 04 Aug 2008 22:39:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-55486</guid>
		<description>Hi Chunter,

You got a nice advice from Nopius  - I'd underline the importance of the last step (#5 :o)).

Some points where I recently got problems:

(1) It's frequent practice to place /bin/sh in the she-bang (#! ... in the first line of the script) of the shell scripts. /bin/sh is usually a link to the default shell and the default shells are different under different unix and linux flavors. Couple weeks ago I hit such a problem with an installation module of a commercial package with code suitable for SGI Irix and linux - it appeared that the /bin/sh in Irix (and I believe in some other unices too) points to ksh (Korn shell) which is quite unusual under linux and some distributions lack it (mine too :o((). So be sure to find out what /bin/sh is and to download and install the actual shell if your distribution does not have it.

(2) Directory structures could differ - and even worse, one can decide to  optimize directory structures for some reason and forget to change scripts which depend on these structures - this happened to me couple of days ago (btw, without any migration).

Good luck,

Petko</description>
		<content:encoded><![CDATA[<p>Hi Chunter,</p>
<p>You got a nice advice from Nopius  - I&#8217;d underline the importance of the last step (#5 :o)).</p>
<p>Some points where I recently got problems:</p>
<p>(1) It&#8217;s frequent practice to place /bin/sh in the she-bang (#! &#8230; in the first line of the script) of the shell scripts. /bin/sh is usually a link to the default shell and the default shells are different under different unix and linux flavors. Couple weeks ago I hit such a problem with an installation module of a commercial package with code suitable for SGI Irix and linux - it appeared that the /bin/sh in Irix (and I believe in some other unices too) points to ksh (Korn shell) which is quite unusual under linux and some distributions lack it (mine too :o((). So be sure to find out what /bin/sh is and to download and install the actual shell if your distribution does not have it.</p>
<p>(2) Directory structures could differ - and even worse, one can decide to  optimize directory structures for some reason and forget to change scripts which depend on these structures - this happened to me couple of days ago (btw, without any migration).</p>
<p>Good luck,</p>
<p>Petko</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->