How Long a process runs for ?
Brian Fahrlander
brian at fahrlander.net
Sat Sep 22 14:18:44 UTC 2007
Rick wrote:
> There a app, I used in the Terminal window, I know it does take a few hours to
> run, however... I would like to know exactly how long so I could setup a cron
> job.
>
> Is there a way to find out how long a application ran for ?
>
> I've check a bunch of log files, and could not find the application. to see
> when it started and when it stop.
>
> also it would be nice, if my terminal window would display the current date
> and time in the window before the flashing cursor.
You just might want to know about "batch". Echo a command line
through "at", and it'll run until it's done...then start the next job
right after it. Like:
echo "/usr/sbin/reboot" | at 1700 [Reboots the machine at 5pm]
echo "longprocess" | batch [Puts another job in the queue]
To learn how long the process takes, just run 'date' or 'time' in
association with it. And it's easy to 'mark' the logs with a program
called 'logger'.
--
------------------------------------------------------------------------
Brian Fahrländer Christian, Conservative, and Technomad
Evansville, IN http://Fahrlander.net/brian
ICQ: 5119262 AOL/Yahoo/GoogleTalk: WheelDweller
------------------------------------------------------------------------
More information about the ubuntu-users
mailing list