LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2006, 06:07 PM   #1
jazman
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
Screen Gather


Hi there,

I have a PABX system that when a certain command is executed it dumps a whole lot of data on the screen.

Is there a way to get a perl script to execute the command, but more importantly is there a way to get the data from the screen and dump it in a text file?
 
Old 06-21-2006, 07:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I would suggest running it from "screen". Starting screen with flag "-L", setting logging in your screenrc or default keycombo CTRL-A SHIFT-H will enable logging to file. Other pro's of screen are it keeps your console uncluttered (just open another "window" to work in) and it's sessions are detachable and resumable.
 
Old 06-22-2006, 01:13 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Could also pipe the output to 'tee' or you could use a shell that allows you to redirect to multiple sources.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to gather hardware inventory in Solaris? anuradha06 Solaris / OpenSolaris 17 12-25-2008 12:47 AM
tool to gather network information paul_mat Linux - Networking 3 01-18-2006 05:01 AM
Gather all files in one partition/folder iskrem Linux - General 5 11-27-2004 06:13 AM
gather login information gsanand Programming 0 10-21-2004 06:45 PM
How do I gather information on the video adapter gianh Linux - General 1 04-22-2004 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:50 PM.

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
Open Source Consulting | Domain Registration