LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2011, 09:35 AM   #1
ebbs
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Rep: Reputation: Disabled
batch command


Hi,
The documentation talks about the /var/run/utmp not being corrupted. Should I be able to tail that? When I do the screen goes crazy and beeps and beeps. If it should be a file that I can read, can I rm it and then touch it?
Thanks
 
Old 08-11-2011, 11:28 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
/var/run/utmp is apparently a binary data file, not text. If you try to output a binary to your screen you'll get nothing but randomish strings of bytes that the shell will attempt to interpret as text. Some of these bytes will be equivalent to the ascii system-bell character, which is why you get beeping.

Run the command file on the filename to see what kind of file you're dealing with. If it says something like "data" or "ELF" executable or such, then it's not readable as text.

Last edited by David the H.; 08-11-2011 at 11:30 AM. Reason: added second part
 
  


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
is wget command appropriate for batch? smturner1 Programming 6 06-19-2011 04:06 PM
Batch file conversion command? the same command on all files in a folder ? pete2222 Linux - General 6 10-02-2010 12:59 PM
Making a batch/cron for tar command ? centosfan Linux - Server 2 08-19-2008 05:29 PM
using 'at' and 'batch' command harry_0098 Linux - Newbie 1 10-30-2007 11:07 AM
mp3 batch convert, remote from command line zerodot Linux - Networking 1 02-12-2003 06:08 AM


All times are GMT -5. The time now is 09:19 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