Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2012_09_09.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
11
12    <title>Status for Andrew DeFaria: September  9, 2012 - September 15, 2012 Archives</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/week_2012_08_26.html" title="August 26, 2012 - September  1, 2012" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2012_09_16.html" title="September 16, 2012 - September 22, 2012" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2012_08_26.html">&laquo; August 26, 2012 - September  1, 2012</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2012_09_16.html">September 16, 2012 - September 22, 2012 &raquo;</a>
38                      </p>
39                      
40                      
41                      <!--
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44          xmlns:dc="http://purl.org/dc/elements/1.1/">
45 <rdf:Description
46     rdf:about="http://defaria.com/blogs/Status/archives/week_2012_09_09.html#entry-000756"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/120"
48     dc:title="Shebang and script interpreters"
49     dc:identifier="http://defaria.com/blogs/Status/archives/week_2012_09_09.html#entry-000756"
50     dc:subject="Broadcom"
51     dc:description="Turns out that you cannot put a script as the interpreter for your #! line. It must be a binary. Also, many IT departments forced with supporting various Unix/Linux&apos;s often have a set of scripts that &quot;do the right thing(tm)&quot;..."
52     dc:creator=""
53     dc:date="2012-09-14T17:48:31-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">September 14, 2012</h2>
59                      <a id="a000756"></a>
60                      <div class="entry" id="entry-756">
61                         <h3 class="entry-header">Shebang and script interpreters</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <p>Turns out that you cannot put a script as the interpreter for your #! line. It must be a binary. Also, many IT departments forced with supporting various Unix/Linux's often have a set of scripts that "do the right thing(tm)" to set up an environment for the target architecture then execute the architecturally appropriate binary. I did this way back with /app server.</p>
65
66 <p>So what do you do when you are say writing an expect script and wish to use #!/app/expect? The trick is to use something like #!/usr/bin/env /app/expect. Most people are familiar with using env(1) to print out the environment and it turns out it does - if you don't give it any other parameter. But it's real main purpose is "run a program in a modified environment". So if you wish to use an interpreter that is a script use #!/usr/bin/env /path/to/script as your shebang line.</p>
67                               
68                               <p class="entry-footer">
69                                  <span class="post-footers">Posted by  at  5:48 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000756.html">Permalink</a>
70                                  
71                                  | <a href="http://defaria.com/blogs/Status/archives/000756.html#trackback">TrackBacks (0)</a>
72                               </p>
73                            </div>
74                         </div>
75                      </div>
76                      
77                   </div>
78                </div>
79             </div>
80          </div>
81       </div>
82    </div>
83 </body>
84 </html>