LinuxQuestions.org
Help answer threads with 0 replies.
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 09-01-2005, 08:03 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
script how to.


mandrake 10.0

i have a command script.

[student@localhost student]$ script
Script started, file is typescript
[student@localhost student]$


after sometime CTRL^D.

it saved under typescript.

Script started on Thu 01 Sep 2005 05:33:34 PM EDT
^[[36l^[>^[]0;student@localhost: /home/student^G[student@localhost student]$ ls^M
^[[00m^[[01;34m1^[[00m/ ^[[00mhai.c^[[00m ^[[00mpro.c^[[00m^M
^[[01;34m123^[[00m/ ^[[00mhostfile^[[00m ^[[01;32mresume_f.doc^[[00m*^M
^[[01;34mAircraft Design Project^[[00m/ ^[[01;32mhttrack-3.32-2.exe^[[00m* ^[[01;34msa^[[00m/^M
^[[01;32manto.doc^[[00m* ^[[01;34mkishore^[[00m/ ^[[01;34msangeetha^[[00m/^M
^[[00mapnic-whois-agreement.pdf^[[00m ^[[01;34mmatchbox-window-manager-0.9.5^[[00m/ ^[[01;34msathish^[[00m/^M
^[[01;34mcd^[[00m/ ^[[01;31mmatchbox-window-manager-0.9.5.tar.gz^[[00m ^[[00mss.sxw^[[00m^M
^[[01;34mcd1^[[00m/ ^[[01;31mmodemscripts.zip^[[00m ^[[00mtest.c^[[00m^M
^[[00mconfig.log^[[00m ^[[01;34mmp3blaster-3.2.0^[[00m/ ^[[01;34mtmp^[[00m/^M
^[[00mdef.lamtr^[[00m ^[[01;32mmp3blaster-3.2.0.tar.gz^[[00m* ^[[00mtypescript^[[00m^M
^[[01;34mDesktop^[[00m/ ^[[01;34mmpi^[[00m/ ^[[01;34mWinHTTrack^[[00m/^M
^[[00mdiva.iso^[[00m ^[[01;32mopenbox-3.1-1.i386.rpm^[[00m* ^[[01;34mWinHTTrack1^[[00m/^M
^[[01;34mDocuments^[[00m/ ^[[01;32mopenbox-devel-3.1-1.i386.rpm^[[00m* ^[[01;32mxfce-3.8.18-25118cl.i386.rpm^[[00m*^M
^[[01;34mfgh^[[00m/ ^[[01;31mopenmosix-kernel-2.4.26-openmosix1.i686.rpm^[[00m ^[[01;32mxfce4-4.0.4-1.i386.rpm^[[00m*^M
^[[00mgg^[[00m ^[[01;31mopenmosix-tools-0.3.6-2.i386.rpm^[[00m ^[[01;32mxfce-utils-4.0.4-1.i386.rpm^[[00m*^M
^[[01;34mGNUstep^[[00m/ ^[[01;32mpro^[[00m*^M
^[[m^[]0;student@localhost: /home/student^G[student@localhost student]$ ls^M
^[[00m^[[01;34m1^[[00m/ ^[[00mhai.c^[[00m ^[[00mpro.c^[[00m^M
^[[01;34m123^[[00m/ ^[[00mhostfile^[[00m ^[[01;32mresume_f.doc^[[00m*^M
^[[01;34mAircraft Design Project^[[00m/ ^[[01;32mhttrack-3.32-2.exe^[[00m* ^[[01;34msa^[[00m/^M
^[[01;32manto.doc^[[00m* ^[[01;34mkishore^[[00m/ ^[[01;34msangeetha^[[00m/^M
^[[00mapnic-whois-agreement.pdf^[[00m ^[[01;34mmatchbox-window-manager-0.9.5^[[00m/ ^[[01;34msathish^[[00m/^M
"typescript" 39L, 4020C 1,1 Top




now how to view this file ?
so that i can understand.
 
Old 09-01-2005, 08:15 AM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
Code:
hostfilem
resume_f.doc
Aircraft Design Project
httrack-3.32-2.exe
sa/
manto.doc
kishore
sangeetha/
mapnic-whois-agreement.pdf
matchbox-window-manager-0.9.5/
sathish/
cd/
matchbox-window-manager-0.9.5.tar.gz
ss.sxw
cd1/
modemscripts.zip
test.c
mconfig.log
mp3blaster-3.2.0/
tmp/
def.lamtr
mp3blaster-3.2.0.tar.gz
typescript
Desktop/
mpi/
WinHTTrack/
diva.iso
openbox-3.1-1.i386.rpm
WinHTTrack1/
Documents/
openbox-devel-3.1-1.i386.rpm
xfce-3.8.18-25118cl.i386.rpm
fgh/
openmosix-kernel-2.4.26-openmosix1.i686.rpm
xfce4-4.0.4-1.i386.rpm
openmosix-tools-0.3.6-2.i386.rpm
xfce-utils-4.0.4-1.i386.rpm
GNUstep
pro

student@localhost: /home/student[student@localhost student]$ ls
hai.cm
pro.cm
hostfile
resume_f.doc
Aircraft Design Project
httrack-3.32-2.exe
manto.doc
kishorem
sangeetha
mapnic-whois-agreement.pdf
matchbox-window-manager-0.9.5/
sathish/
Should be similiar to the output you are getting. Purhaps show us the content of the script with

`cat truescript` because I'm not sure, hope I'm not the only one, what that script is supposed to do besides put a lot of noise in the command `ls`.
 
Old 09-01-2005, 08:31 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i did not understand ur answer.
please be more?
 
Old 09-01-2005, 12:26 PM   #4
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
Run `cat truescript` in the terminal and post output, please.
 
Old 09-02-2005, 08:43 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
sorry it is working by using cat command.

the reason is my file is typescript.but u said truescript.

i miss spelled.
 
  


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
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-12-2005 12:08 AM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 11:23 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 01:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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