LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-14-2004, 10:31 PM   #1
linuxzouk
Member
 
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Rep: Reputation: 15
how do i remove unwanted charaters at "script" command output?


the output of "script" command seems to have additional characters eg. ^[], ^[[00M, ^M, ^G

how do i remove them? any commands to clear it all off automatically
 
Old 05-15-2004, 06:08 AM   #2
agoatley
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 16

Rep: Reputation: 0
Could you please elaborate? What command did you enter that produced the strange output?
 
Old 05-15-2004, 07:28 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Did you hit any "movement" keys (Delete, Backspace, etc) while the command was running? That could produce strange output like that.
 
Old 05-15-2004, 07:45 AM   #4
linuxzouk
Member
 
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Original Poster
Rep: Reputation: 15
i'm using fedora core 1. at gnome using konsole

command:
# script

i do a ls, date and exit

this is the output:

Script started on Sun 16 May 2004 08:42:32 PM MYT
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ ls
Desktop typescript
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ date
Sun May 16 20:42:36 MYT 2004
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ exit

Script done on Sun 16 May 2004 08:42:38 PM MYT
 
Old 05-15-2004, 07:58 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
I don't actually see anything odd there; I'm not familar with script, but it looks to me that the first half of the line is script's explanation of who did what, and where (what user, what hostname, what directory they were acting on, with "unreadable" characters representing the "line number" and additional information such as the fact that your prompt apparently is colorized), and then what comes after the dot is the actual output.

Whoever is supposed to be reading this output shouldn't have any issues with it; I didn't and I only glanced at man script.

Any who are more familar with the standard output of the script command are free to contradict me, of course .
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
Terminal command for GUI command "Remove to trash" GunSkit Linux - General 3 06-29-2004 01:50 PM
Can I redirect script output to a file without ">> $LOGFILE" at the end of each line davee Linux - General 1 12-19-2003 05:01 AM
remove the "Run or Display?" when I execute a script llee Linux - Software 0 05-02-2003 02:52 PM
qmail: strange output of "file" command slowleak Linux - Security 1 08-10-2001 10:40 PM


All times are GMT -5. The time now is 08:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration