Hey, we started the Linuxdoc.org blog. You want to write a guest post about your favorite Linux related topic? Just send us a mail.The Linux community would appreciate it.

I find a command 'setterm' used to record the terminal information, but i never successfull record the terminal result. i‘m use the centOS5, i do use this command like this:

1, login tty1 and use the PWD to check the information. for example:

         gwssgc          tty1             2011-08-04  00:12
         gwssgc          pts/0            2011-08-04  00:12

2, accroding to the command hint (http://linux.die.net/man/1/setterm)

        sudo setterm -dump 1 -flie output.txt

when i enter the command, the terminal will be displayed "could't read /dev/vcsa1", but this file 'output.txt' already exist, problem is, this file is empty. content of terminal has noe been saved.

who can teacher me what is the currect way to use this command? THX!

sorry for my bad English.

asked 08 Aug '11, 05:53

gwssgc's gravatar image

gwssgc
1112
accept rate: 0%

edited 08 Aug '11, 05:56


First of all you have a typo in your command arguments it says "flie" instead of file. the command: setterm -dump 1 -file output.txt ..should work fine if you are root. The error massage "Couldn't read ...." is usually an indication that you are running the command as user with no sufficient privileges. So try it as root.

link

answered 29 Aug '11, 19:49

vgrozev's gravatar image

vgrozev
1
accept rate: 0%

My Fedora version is old and I would not like to change that for the moment it is Fedora 7. Why do you mention about your proxy server? what is all this wow gold with the voting? I don't really like very much voting...in such cases.

link

answered 31 Oct '11, 07:03

nstanc's gravatar image

nstanc
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 08 Aug '11, 05:53

Seen: 3,270 times

Last updated: 31 Oct '11, 07:03

Related questions

we use OSQA