[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to run something before invoking the inputted command?
From: |
Andreas Schwab |
Subject: |
Re: How to run something before invoking the inputted command? |
Date: |
Mon, 12 Jul 2010 18:19:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
"Clark J. Wang" <dearvoid@gmail.com> writes:
> For example, in the interactive shell, I want to track the time when every
> inputted command is invoked. So I want to run a `date' command before
> actually invoking the inputted command. For now I have to do like this:
>
> $ date; command1
> $ date; command2
>
> Is there an easy way to do that?
You can get from the history output, if you set HISTTIMEFORMAT.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- How to run something before invoking the inputted command?, Clark J. Wang, 2010/07/09
- Re: How to run something before invoking the inputted command?, Eric Blake, 2010/07/09
- Re: How to run something before invoking the inputted command?, Clark J. Wang, 2010/07/09
- Re: How to run something before invoking the inputted command?, Greg Wooledge, 2010/07/12
- Re: How to run something before invoking the inputted command?, Dave Rutherford, 2010/07/12
- Re: How to run something before invoking the inputted command?, Clark J. Wang, 2010/07/12
- Re: How to run something before invoking the inputted command?, Greg Wooledge, 2010/07/13
- Re: How to run something before invoking the inputted command?, Clark J. Wang, 2010/07/13
Re: How to run something before invoking the inputted command?,
Andreas Schwab <=