[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



-- 
Joe Sechman
Unix / Linux Systems Administrator
RLU: #367555
<a  rel="nofollow" href="http://counter.li.org";>http://counter.li.org</a>

On 09 Dec 2004 15:03:15 -0500, Charles Shapiro
&lt;charles.shapiro at nubridges.com&gt; wrote:
&gt; Perhaps  the script(1) command is what you want. It's very handy (along
&gt; with &quot;set -x&quot; for debugging shell scripts. I leave why you'd write a
&gt; shell script long enough to require debugging as an Exercise for the
&gt; Reader.
&gt; 
&gt; **
&gt; [devel at cshapiro tmp]script /tmp/foo.out
&gt; Script started, file is /tmp/foo.out
&gt; bash-2.05$ echo Hey Mom!
&gt; Hey Mom!
&gt; bash-2.05$ uname -a
&gt; Linux cshapiro.numethods.com 2.4.18 #5 Thu May 2 11:17:38 EDT 2002 i686
&gt; unknown
&gt; ^d
&gt; bash-2.05$ Script done, file is /tmp/foo.out
&gt; [devel at cshapiro tmp]cat /tmp/foo.out
&gt; Script started on Thu Dec  9 15:01:06 2004
&gt; bash-2.05$ echo Hey Mom!
&gt; Hey Mom!
&gt; bash-2.05$ uname -a
&gt; Linux cshapiro.numethods.com 2.4.18 #5 Thu May 2 11:17:38 EDT 2002 i686
&gt; unknown
&gt; bash-2.05$
&gt; Script done on Thu Dec  9 15:01:14 2004
&gt; [devel at cshapiro tmp]
&gt; **
&gt; 
&gt; -- CHS
&gt; 
&gt; 
&gt; 
&gt; On Thu, 2004-12-09 at 14:14, Joe Sechman wrote:
&gt; &gt; I was wondering if it was possible to echo the name of a running
&gt; &gt; command interactively in the shell to where the output contains the
&gt; &gt; name of the command and the resulting command output - resulting  in a
&gt; &gt; log of commands (w/the help of tee, etc...) that were run matched with
&gt; &gt; their output.


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00392" href="msg00392.html">[ale] Why APIC?</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
<li><strong><a name="00396" href="msg00396.html">[ale] Dumb Shell Scripting Question.....</a></strong>
<ul><li><em>From:</em> joe.sechman at gmail.com (Joe Sechman)</li></ul></li>
<li><strong><a name="00401" href="msg00401.html">[ale] Dumb Shell Scripting Question.....</a></strong>
<ul><li><em>From:</em> charles.shapiro at nubridges.com (Charles Shapiro)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00402.html">[ale] Why APIC?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00404.html">[ale] Project/Time Management and Billing Programs</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00401.html">[ale] Dumb Shell Scripting Question.....</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00405.html">[ale] Dumb Shell Scripting Question.....</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00403"><strong>Date</strong></a></li>
<li><a href="threads.html#00403"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>