LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2009, 12:44 AM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
/dev/tty2 looks garbled after executing script


If I'm logged into the terminal, it doesn't look garbled. However, if I am not logged into tty2 and execute the script from tty1, tty2 will show a misaligned output. That's not to say it won't display the information. However, the alignment of the information is very off and sometimes goes off the screen. I'm not sure what the issue is.

Has anyone had an issue similar to this?
I'm using Debian Sid.

Last edited by Cyberman; 03-31-2009 at 12:45 AM.
 
Old 03-31-2009, 07:19 AM   #2
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 179Reputation: 179
I can think of two things.
  1. Run the script so that the output, instead of going to any tty, goes to a file. Then dump the file in hex. Do you see any escape characters in the output? If you do, see what's going on in your program.

  2. Is your system configured so that you could log into tty2 if you wanted to? If so, is there something that's normally displayed on tty2 when it's not logged in?

    I run Slackware, not Debian, so your mileage may vary, but on Slackware the file that contains what would be output to tty2 when it's not logged in is in file /etc/issue. Find that file, wherever it is for Debian, and dump it in hex and see what you get. Again, look for escape characters.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run an external script, without holding up the currently executing script onesikgypo Programming 2 03-07-2009 09:26 PM
need help executing a script that someone sent me giantjoebot Linux - Newbie 16 08-13-2008 12:35 AM
Redirect /dev/ttyS0 input/output to tty2 Kymbo Linux - General 1 09-07-2006 10:07 AM
Bash script - executing a script through subdirectories bubkus_jones Programming 5 04-24-2006 05:05 PM
executing a script!! vishamr2000 Linux - Security 5 07-29-2005 02:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration