[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu Dec 9 15:27:07 2004 -->
- <!--x-from-r13: wbr.frpuzna ng tznvy.pbz (Xbr Erpuzna) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Dumb Shell Scripting Question..... -->
- <li><em>date</em>: Thu Dec 9 15:27:07 2004</li>
- <li><em>from</em>: joe.sechman at gmail.com (Joe Sechman)</li>
- <li><em>in-reply-to</em>: <<a href="msg00401.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00392.html">[email protected]</a>> <<a href="msg00396.html">[email protected]</a>> <<a href="msg00401.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Dumb Shell Scripting Question.....</li>
--
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
<charles.shapiro at nubridges.com> wrote:
> Perhaps the script(1) command is what you want. It's very handy (along
> with "set -x" for debugging shell scripts. I leave why you'd write a
> shell script long enough to require debugging as an Exercise for the
> Reader.
>
> **
> [devel at cshapiro tmp]script /tmp/foo.out
> Script started, file is /tmp/foo.out
> bash-2.05$ echo Hey Mom!
> Hey Mom!
> bash-2.05$ uname -a
> Linux cshapiro.numethods.com 2.4.18 #5 Thu May 2 11:17:38 EDT 2002 i686
> unknown
> ^d
> bash-2.05$ Script done, file is /tmp/foo.out
> [devel at cshapiro tmp]cat /tmp/foo.out
> Script started on Thu Dec 9 15:01:06 2004
> bash-2.05$ echo Hey Mom!
> Hey Mom!
> bash-2.05$ uname -a
> Linux cshapiro.numethods.com 2.4.18 #5 Thu May 2 11:17:38 EDT 2002 i686
> unknown
> bash-2.05$
> Script done on Thu Dec 9 15:01:14 2004
> [devel at cshapiro tmp]
> **
>
> -- CHS
>
>
>
> On Thu, 2004-12-09 at 14:14, Joe Sechman wrote:
> > I was wondering if it was possible to echo the name of a running
> > command interactively in the shell to where the output contains the
> > name of the command and the resulting command output - resulting in a
> > log of commands (w/the help of tee, etc...) that were run matched with
> > 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>