LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2015, 12:23 PM   #1
WolfStock
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
Seeking terminal emulation with timestamped output to file


Greetings,

I'm trying to find a terminal emulation program for Linux that can save output to a file, and do so with every line of output timestamped.

There are a couple of emulators for Windows that support this (e.g. TeraTerm and ExtraPuTTY), but I haven't found one for Linux. Anyone know of one?

The linux system I'm using has gnome, though gnome-terminal doesn't support timestamped output.

Thanks.
 
Old 06-10-2015, 02:50 PM   #2
js404
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
This might be what you are looking for. If you want the terminal to always log, you can add the command to your ~/.bashrc file.
 
Old 06-10-2015, 09:30 PM   #3
WolfStock
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by js404 View Post
This might be what you are looking for. If you want the terminal to always log, you can add the command to your ~/.bashrc file.
Nah - script doesn't add timestamps, that I'm aware of anyhow. I need something that adds timestamps to the logfile file; and not just timestamps of the commands I enter but timestamps of every single output line. E.g. if you had a program "watchstatus" that was putting out status updates to stdout, would show something like:

[Tue Apr 07 18:55:44.841 2015] [wolfstock@myserver ~]$ watchstatus
[Tue Apr 07 18:55:54.471 2015] status: up
[Tue Apr 07 19:32:23.292 2015] status: down
[Tue Apr 07 19:32:24.100 2015] status: up
[Tue Apr 07 19:32:28.555 2015] status: down
[Tue Apr 07 20:22:33.630 2015] status: up
[Tue Apr 07 20:22:34.829 2015] status: down
[Tue Apr 07 20:55:18.888 2015] status: up
[Tue Apr 07 20:55:19.213 2015] status: down
...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Copy Terminal Output to a File SkM007 Linux - Newbie 10 01-03-2016 05:17 PM
[SOLVED] (Solved) Where is the output file for the terminal? wmichaelb Linux - Newbie 5 05-07-2014 01:41 PM
Seeking CLI learning tool; a "glass-bottomed boat" to output GUI actions to Terminal. drachenchen Linux - Newbie 9 08-21-2009 11:19 AM
create a timestamped rar file steve51184 Linux - Software 2 05-22-2008 05:36 AM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 09:36 AM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration