 




<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<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><![CDATA[Hi Chunter,

You got a nice advice from Nopius  - I&#039;d underline the importance of the last step (#5 :o)).

Some points where I recently got problems:

(1) It&#039;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  &#8211; I&#8217;d underline the importance of the last step (#5 <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )).</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 &#8211; 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 <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ((). 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 &#8211; and even worse, one can decide to  optimize directory structures for some reason and forget to change scripts which depend on these structures &#8211; 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>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.038 seconds using memcached
Object Caching 275/281 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 01:49:51 -->