[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:05:51 2004 -->
- <!--x-from-r13: puneyrf.funcveb ng ahoevqtrf.pbz (Quneyrf Euncveb) -->
- <!--x-message-id: [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:05:51 2004</li>
- <li><em>from</em>: charles.shapiro at nubridges.com (Charles Shapiro)</li>
- <li><em>in-reply-to</em>: <<a href="msg00396.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00392.html">[email protected]</a>> <<a href="msg00396.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Dumb Shell Scripting Question.....</li>
**
[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.
>
> For example:
>
> $ ls -la | tee -a myoutput
> ls -la | tee -a myoutput:
> total 32
> drwxrwxr-x 2 sechmanj sechmanj 4096 Oct 21 13:32 .
> drwx------ 29 sechmanj sechmanj 4096 Dec 9 10:08 ..
> -rw-rw-r-- 1 sechmanj sechmanj 579 Jun 14 13:43 franki.c
> -rw-rw-r-- 1 sechmanj sechmanj 190 May 11 2004 example.txt
> ...
>
> $ cat test | tee -a myoutput
> cat test | tee -a myoutput:
> This is a test file
>
> $ cat myoutput
> ls -la | tee -a myoutput:
> total 32
> drwxrwxr-x 2 sechmanj sechmanj 4096 Oct 21 13:32 .
> drwx------ 29 sechmanj sechmanj 4096 Dec 9 10:08 ..
> -rw-rw-r-- 1 sechmanj sechmanj 579 Jun 14 13:43 franki.c
> -rw-rw-r-- 1 sechmanj sechmanj 190 May 11 2004 example.txt
> ...
> cat test | tee -a myoutput:
> This is a test file
>
> I've got the sense that I'm missing something blaringly
> obvious.......Thanks in advance for any help!!
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00403" href="msg00403.html">[ale] Dumb Shell Scripting Question.....</a></strong>
<ul><li><em>From:</em> joe.sechman at gmail.com (Joe Sechman)</li></ul></li>
</ul></li></ul>
<!--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>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00400.html">[ale] Dumb Shell Scripting Question.....</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00402.html">[ale] Why APIC?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00400.html">[ale] Dumb Shell Scripting Question.....</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00403.html">[ale] Dumb Shell Scripting Question.....</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00401"><strong>Date</strong></a></li>
<li><a href="threads.html#00401"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>