LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   batch command (https://www.linuxquestions.org/questions/linux-newbie-8/batch-command-896750/)

ebbs 08-11-2011 08:35 AM

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

David the H. 08-11-2011 10:28 AM

/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.


All times are GMT -5. The time now is 12:00 AM.