computer info linux command image

Kevin M
I need to make a session of my computer program's output for my programming class. I can't find how to do it in my notes or online. im sure it's simple, but im missing it. The only hint i got was
" Use Unix>script <sessionFile> to do this "
im assuming somewhere you input the "XXX.exe" and the destination file... but i cant seem to get anything to work.
Answer
When you start your session at the xterm window, type "script <filemname>" at the prompt. That will open a file named <filename> that will record your session. If you just type in the command script, it will output to a file named "typescript".
Then you just run your program. When you are done, press CTRL-D.
For example I did the following on my Linux box..
mike@edsel:~> script sizes_script
Script started, file is sizes_script
mike@edsel:~> ./sizes
char= 1
unsigned char = 1
int = 4
unsigned int = 4
short = 2
unsigned short = 2
long = 4
unsigned long = 4
float = 4
double = 8
long double = 12
mike@edsel:~> Script done, file is sizes_script
mike@edsel:~>
I typed a CRTL-D at the second to last line.
For more info, type "man script" into your xterm. That will give you all the info you need.
When you start your session at the xterm window, type "script <filemname>" at the prompt. That will open a file named <filename> that will record your session. If you just type in the command script, it will output to a file named "typescript".
Then you just run your program. When you are done, press CTRL-D.
For example I did the following on my Linux box..
mike@edsel:~> script sizes_script
Script started, file is sizes_script
mike@edsel:~> ./sizes
char= 1
unsigned char = 1
int = 4
unsigned int = 4
short = 2
unsigned short = 2
long = 4
unsigned long = 4
float = 4
double = 8
long double = 12
mike@edsel:~> Script done, file is sizes_script
mike@edsel:~>
I typed a CRTL-D at the second to last line.
For more info, type "man script" into your xterm. That will give you all the info you need.
How did certain computers get there names?

ItsThePets
How did macontosh and windows, and other computers get there names? How did they start too.
Answer
Macintosh got it's name because the company that created it is called Apple. A macintosh is a variety of apple. Apple was founded in 1976 by Steve Jobs and Steve Wozniak. They had tremendous initial success with the Apple I and the Apple II (especially the Apple IIe, which was widely used in education). In 1984 they released the original Macintosh, an affordable system with a GUI that was geared towards regular people, not just businesses and scientists.
Windows got it's name because the original version was a GUI (Graphical User Interface) for DOS, a command line system. Because they were giving DOS a graphical interface, it was called Windows.
Linux got it's name because it is based on UNIX, and was created by Linus Torvalds. Linus + UNIX = Linux
As for hardware, Dell is named after its founder, Michael Dell.
IBM stands for International Business Machines.
HP stands for Hewlett-Packard, and is named after founders William Hewlett and David Packard.
There are many others. Ask about specific ones if you want more info.
Macintosh got it's name because the company that created it is called Apple. A macintosh is a variety of apple. Apple was founded in 1976 by Steve Jobs and Steve Wozniak. They had tremendous initial success with the Apple I and the Apple II (especially the Apple IIe, which was widely used in education). In 1984 they released the original Macintosh, an affordable system with a GUI that was geared towards regular people, not just businesses and scientists.
Windows got it's name because the original version was a GUI (Graphical User Interface) for DOS, a command line system. Because they were giving DOS a graphical interface, it was called Windows.
Linux got it's name because it is based on UNIX, and was created by Linus Torvalds. Linus + UNIX = Linux
As for hardware, Dell is named after its founder, Michael Dell.
IBM stands for International Business Machines.
HP stands for Hewlett-Packard, and is named after founders William Hewlett and David Packard.
There are many others. Ask about specific ones if you want more info.
Powered by Yahoo! Answers
Comments :
Post a Comment