Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Record standard output and inputs made on a session Post 302832339 by Yoda on Sunday 14th of July 2013 12:09:55 PM
Old 07-14-2013
Have a look at script command that can help you make record of a terminal session:

script manual
This User Gave Thanks to Yoda For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Standard Output

When I run a third parties program from the command line (this program basically list's a whole load of stuff) and write the output to a file it splits the output, i.e. in the middle of the file appears the exit command. If I don't redirect the output and write it to tty then the output is... (3 Replies)
Discussion started by: dbrundrett
3 Replies

2. Shell Programming and Scripting

Standard output and redirection

Hello, Is is possible to redirect stdout to a file as well as to the console/screen or display in ksh. any thoughts suggestions/input is appreciated. Thanks. (2 Replies)
Discussion started by: jerardfjay
2 Replies

3. Shell Programming and Scripting

Standard output redirection from a variable

Hi, trying to store a comand involving a redirection in a variable and then run this variable. But the redirection gets lost. Ex: #!ksh MYCMD="ls -l > dirlist.txt" $MYCMD This runs the command but displays the result in the terminal instead of redirecting it to the text file. Can... (4 Replies)
Discussion started by: rm-r
4 Replies

4. Shell Programming and Scripting

Record login session...

How to record my login session in a file named session.lst? (1 Reply)
Discussion started by: anupdas
1 Replies

5. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

6. UNIX for Dummies Questions & Answers

Reading from Screen/Standard Output

Is it possible to read from the screen or standard output? If so, may I know how I can do this? For example, I have an application running which prints out the following on the screen: Starting tools from .image-tools... imagecontrol_1: SECS/GEM-capable version is running done cindy@pgunix... (2 Replies)
Discussion started by: sippingsoda
2 Replies

7. Shell Programming and Scripting

How to execute standard output ?

Alright so i got this script genpipe: echo "$*" |sh genscript file vi file << 'HERE' :%s/^/echo /g :%s/ $//g :%s/ /&\| xargs \.\/plus /g :wq HERE cat file Which generates output like echo 1 | xargs ./plus 2 | xargs ./plus 3 and so on Now i got the next script multiplus, who should... (3 Replies)
Discussion started by: Bertieboy7
3 Replies

8. Shell Programming and Scripting

Take 10 user inputs and output to file?

I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help. #!/usr/bin/ksh echo "Enter 10 numbers" for i in 1 2 3 4 5 6 7 8 9 10 do read .... ... (8 Replies)
Discussion started by: AxlVanDamme
8 Replies

9. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

10. Shell Programming and Scripting

SU and Standard Output

Bit of a strange one. Have a script called rapidclone_test.sh which calls Oracle rapidclone using su -c as an oracle osuser. However, if I control+c out to the calling shell anything entered is not displayed on the terminal. Any command executes successfully though. Why is the standard... (1 Reply)
Discussion started by: u20sr
1 Replies
lp(1)							      General Commands Manual							     lp(1)

Name
       lp - send requests to an LP line printer

Syntax
       lp [-c] [-d dest] [-n number] [-] [files]

Description
       The command arranges for the named files and associated information (collectively called a request) to be printed by a line printer.  If no
       file names are mentioned, the standard input is assumed.  When a file name is designated by a minus sign (-) it	stands	for  the  standard
       input  and may be supplied on the command line in conjunction with named files.	The order in which files appear is the same order in which
       they are printed.

       This command exists for X/OPEN compatibility.

Options
       The following options to may appear in any order and may be intermixed with file names:

       -c	   Makes copies of the files to be printed immediately when is invoked.  Normally, files are not copied, but are  linked  whenever
		   possible.  If the -c option is not given, then the user should be careful not to remove any of the files before the request has
		   been printed in its entirety.  It should also be noted that without the -c option, any changes made to the  named  files  after
		   the request is made but before it is printed are reflected in the printed output.

       -d dest	   Chooses  dest  as  the  printer that is to do the printing.	If dest is a printer, then the request is printed on that specific
		   printer.  By default, dest is taken from the environment variable PRINTER if it is set.  Otherwise, a default destination,  lp,
		   is used.

       -n number   Prints number copies (default of 1) of the output.

Files
       /etc/passwd	      personal identification
       /etc/printcap	      printer capabilities data base
       /usr/lib/lpd*	      line printer daemons
       /usr/spool/*	      directories used for spooling
       /usr/spool/*/cf*       daemon control files
       /usr/spool/*/df*       data files specified in cf files
       /usr/spool/*/tf*       temporary copies of cf files

See Also
       lpq(1), lpr(1), lprm(1), pr(1), symlink(2), printcap(2), lpc(8), lpd(8)

																	     lp(1)
All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy