Re: UNIX nice Command Good/Bad

2002-08-08 Thread Anjo Kolk

Not sure if this has been mentioned some where, but it used to be that 
UNIX would lower priority of processes that had accumulated a lot of CPU 
time. So the Oracle Background processes would get lower priority over 
time. Stopping and starting an instance will fix this again ;-)

Cary Millsap wrote:

Anything that an OS does to raise or lower process priority without the
Oracle kernel's knowing is a bad thing.

Example: An inefficient process called L that makes way too many cache
buffer chains acquisitions is demoted (niced to a less important
priority). An important job called H that needs some of the same latches
is promoted (niced to a more important priority). L, which gets some
user-mode CPU time in spite of its poor priority, works long enough to
acquire a latch, and then it gets preempted. Now, when H needs the same
latch that L is holding, H will consume lots of CPU spinning for the
latch, but of course H can never obtain the latch until L releases it.
But L is asleep most of the time because it has a low priority. You'll
have a busy-looking system (high CPU utilization because of H's
spinning), but nobody will be able to get anything done.

When the Oracle kernel provides process prioritization or suspend/resume
capabilities, it'll be fantastic (I think they advertise some of this
stuff in 9i, but I'm not sure it works yet). But no OS can do the job
unless it takes into account some of the things that Oracle is doing
internally.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: NCOAUG Training Day, Aug 16 Chicago



-Original Message-
Ethan
Sent: Tuesday, August 06, 2002 5:23 PM
To: Multiple recipients of list ORACLE-L

There is an article on Metalink that talks about doing this and doesn't
mention the problem but I will take your word over that.  Another post
on
usenet talked about some different software available on particular
operating systems that would do the smae thing as nice but I guess it
does
is a little more nicley.  Would this be safe?  How about punishing the
whole lot and forcing all processes with a particular database to run at
a
lower level?

Ethan Post
(972) 577-6552 
[EMAIL PROTECTED]
perotdba (AIM), epost1 (Yahoo)



-Original Message-
Sent: Tuesday, August 06, 2002 4:28 PM
To: Multiple recipients of list ORACLE-L


Still true.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: NCOAUG Training Day, Aug 16 Chicago



-Original Message-
Ethan
Sent: Tuesday, August 06, 2002 3:58 PM
To: Multiple recipients of list ORACLE-L

Is this still true?



*
WARNING: do not run Oracle processes at different priority by altering
the nice value.  This is specifically warned against in the manuals.
If you have a process with a lowered priority that obtains a lock on
an object, then can't run because of the low priority, you will create
a deadlock or hang situation.  All Oracle processes should run at the
same priority.





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Anjo Kolk
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: UNIX nice Command Good/Bad

2002-08-08 Thread DENNIS WILLIAMS

Anjo - The way that I would put it is that the operating system (any
multitasking o.s.) must make a decision on which process to give which
processor next and for how long. It is more complex than the o.s. just
picking the highest priority process from the run queue (processes that are
available to run, not waiting for I/O for example).  Each o.s. vendor has
its own proprietary decision process. The o.s. lowering the priority of a
process that has accumulated a lot of CPU time is one factor. The priority
figure is one way to make provide some visibility of a single aspect of this
decision process. Tru64 tracks the nice value in addition to priority.
Some vendors do better at this than others. One sign of doing a better job
is being able to scale to more processors.
   I took a C.S. class in operating systems years ago and the main thing I
came away with was:
1. It isn't simple.
2. Most vendors configure their system pretty well as delivered.
3. It is better to change the priority factors in your application before
you try changing the operating system's parameters.
4. If you decide to change something, just change one thing at a time and
measure the effect.

This is as much as I can recall today.
Dennis Williams
DBA
Lifetouch, Inc.
[EMAIL PROTECTED]


-Original Message-
Sent: Thursday, August 08, 2002 3:26 PM
To: Multiple recipients of list ORACLE-L


Not sure if this has been mentioned some where, but it used to be that 
UNIX would lower priority of processes that had accumulated a lot of CPU 
time. So the Oracle Background processes would get lower priority over 
time. Stopping and starting an instance will fix this again ;-)

Cary Millsap wrote:

Anything that an OS does to raise or lower process priority without the
Oracle kernel's knowing is a bad thing.

Example: An inefficient process called L that makes way too many cache
buffer chains acquisitions is demoted (niced to a less important
priority). An important job called H that needs some of the same latches
is promoted (niced to a more important priority). L, which gets some
user-mode CPU time in spite of its poor priority, works long enough to
acquire a latch, and then it gets preempted. Now, when H needs the same
latch that L is holding, H will consume lots of CPU spinning for the
latch, but of course H can never obtain the latch until L releases it.
But L is asleep most of the time because it has a low priority. You'll
have a busy-looking system (high CPU utilization because of H's
spinning), but nobody will be able to get anything done.

When the Oracle kernel provides process prioritization or suspend/resume
capabilities, it'll be fantastic (I think they advertise some of this
stuff in 9i, but I'm not sure it works yet). But no OS can do the job
unless it takes into account some of the things that Oracle is doing
internally.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: NCOAUG Training Day, Aug 16 Chicago



-Original Message-
Ethan
Sent: Tuesday, August 06, 2002 5:23 PM
To: Multiple recipients of list ORACLE-L

There is an article on Metalink that talks about doing this and doesn't
mention the problem but I will take your word over that.  Another post
on
usenet talked about some different software available on particular
operating systems that would do the smae thing as nice but I guess it
does
is a little more nicley.  Would this be safe?  How about punishing the
whole lot and forcing all processes with a particular database to run at
a
lower level?

Ethan Post
(972) 577-6552 
[EMAIL PROTECTED]
perotdba (AIM), epost1 (Yahoo)



-Original Message-
Sent: Tuesday, August 06, 2002 4:28 PM
To: Multiple recipients of list ORACLE-L


Still true.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: NCOAUG Training Day, Aug 16 Chicago



-Original Message-
Ethan
Sent: Tuesday, August 06, 2002 3:58 PM
To: Multiple recipients of list ORACLE-L

Is this still true?



*
WARNING: do not run Oracle processes at different priority by altering
the nice value.  This is specifically warned against in the manuals.
If you have a process with a lowered priority that obtains a lock on
an object, then can't run because of the low priority, you will create
a deadlock or hang situation.  All Oracle processes should run at the
same priority.





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Anjo Kolk
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 

Re: Unix at command ???

2002-04-03 Thread Ron Rogers

Janet,
 From the command line type   man at   and you will see the correct
format to enter a at string.
The basic format is at  -f file_to_execute HH:MM This will execute
the file at the time specified if the time is in the future. If the time
is in the past it will take the next occurrence of the time(tomorrow).
You can also use the MMDDYY in the string to specify the date to execute
the file.
at is used for a one time execution of a command. If you would like
the command to execute at a set repetition use cron
ROR mª¿ªm

   
Janet Linsy
   
janetlinsy@ya   To: Multiple recipients of
list ORACLE-L [EMAIL PROTECTED]   
hoo.com cc:   
   
Sent by: Subject: Unix at command
???  
[EMAIL PROTECTED] 
   
om 
   
   
   
   
   
04/02/02 03:14 
   
PM 
   
Please respond 
   
to ORACLE-L
   
   
   
   
   




Hi all,

I'd like to run a file (r2) at 15:10 Apr 2.  Below was
what I did and I could not get out of at normally.

/export/home/oracle/test$ at 15:10 Apr 2
at r2
at EOF
at EOF
at EOT
at EOT
at ^Z[19] + Stopped (SIGTSTP)at 15:10 Apr 2

I tried EOF according to the on-line doc, and also
tried EOT, but none works.  Finally I used Control Z
to get out of at.  I was out, but the script file
didn't run.

So what's the correct syntax to run the command at a
specific date, time?  Thank you!

Janet

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/ 
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
--
Author: Janet Linsy
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: 
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists


To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Unix at command ???

2002-04-02 Thread Janet Linsy

Hi all,

I'd like to run a file (r2) at 15:10 Apr 2.  Below was
what I did and I could not get out of at normally.  

/export/home/oracle/test$ at 15:10 Apr 2
at r2
at EOF
at EOF
at EOT
at EOT
at ^Z[19] + Stopped (SIGTSTP)at 15:10 Apr 2

I tried EOF according to the on-line doc, and also
tried EOT, but none works.  Finally I used Control Z
to get out of at.  I was out, but the script file
didn't run.

So what's the correct syntax to run the command at a
specific date, time?  Thank you!

Janet

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Janet Linsy
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Unix at command ???

2002-04-02 Thread Alex

try control-C   or  a  period  or  a control-D

On Tue, 2 Apr 2002, Janet Linsy wrote:

 Hi all,
 
 I'd like to run a file (r2) at 15:10 Apr 2.  Below was
 what I did and I could not get out of at normally.  
 
 /export/home/oracle/test$ at 15:10 Apr 2
 at r2
 at EOF
 at EOF
 at EOT
 at EOT
 at ^Z[19] + Stopped (SIGTSTP)at 15:10 Apr 2
 
 I tried EOF according to the on-line doc, and also
 tried EOT, but none works.  Finally I used Control Z
 to get out of at.  I was out, but the script file
 didn't run.
 
 So what's the correct syntax to run the command at a
 specific date, time?  Thank you!
 
 Janet
 
 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.yahoo.com/
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Janet Linsy
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alex
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Unix at command ???

2002-04-02 Thread Brian_P_MacLean


Try Control-D when you are done inputting your commands

Brian P. MacLean
Oracle DBA, OCP8i



   

Janet Linsy

janetlinsy@ya   To: Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]   
hoo.com cc:   

Sent by: Subject: Unix at command ???  

[EMAIL PROTECTED] 

om 

   

   

04/02/02 03:14 

PM 

Please respond 

to ORACLE-L

   

   





Hi all,

I'd like to run a file (r2) at 15:10 Apr 2.  Below was
what I did and I could not get out of at normally.

/export/home/oracle/test$ at 15:10 Apr 2
at r2
at EOF
at EOF
at EOT
at EOT
at ^Z[19] + Stopped (SIGTSTP)at 15:10 Apr 2

I tried EOF according to the on-line doc, and also
tried EOT, but none works.  Finally I used Control Z
to get out of at.  I was out, but the script file
didn't run.

So what's the correct syntax to run the command at a
specific date, time?  Thank you!

Janet

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Janet Linsy
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



OT: Unix tee command

2001-07-11 Thread Erik Williams

I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Erik Williams
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Unix tee command

2001-07-11 Thread Guy Hammond

The tee command simply does what you say: it writes a copy to a file
as well as writing it to the console. You could get a similar result by

tail -f log_file
script_file log_file 

Are you writing a script that needs to have two stream outputs? Or is it
important that you watch the script as it runs? If so, then your method
makes sense.

HTH,

g

-Original Message-
Sent: Wednesday, July 11, 2001 3:12 PM
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a
log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Guy Hammond
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Unix tee command

2001-07-11 Thread Kevin Lange

The TEE command basically duplicates  the output.  It sends a copy to the
file specified and a copy to the standard output.  This is the difference in
just redirecting it.  When you redirect it, none goes to standard out, just
to the file specified.

-Original Message-
Sent: Wednesday, July 11, 2001 9:12 AM
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Erik Williams
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kevin Lange
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Unix tee command

2001-07-11 Thread Lord, David - CS

tee copies its standard input to its standard output AND the log_file.

HTH
David Lord

-Original Message-
Sent: 11 July 2001 15:12
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Erik Williams
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Lord, David - CS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Unix tee command

2001-07-11 Thread Norrell, Brian

The tee command duplicates its input, sending one copy to the file, and the
other to the screen (or the next command in the pipe).

You get to see your data and save it too.

Brian Norrell
Manager, MPI Development
QuadraMed
511 E John Carpenter Frwy, Su 500
Irving, TX 75062
(972) 831-6600


-Original Message-
Sent: Wednesday, July 11, 2001 9:12 AM
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Erik Williams
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Norrell, Brian
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Unix tee command

2001-07-11 Thread Vergara, Michael (TEM)

Erik:

This is from the HP-UX man page for tee:

 DESCRIPTION
  The tee command transcribes the standard input to the standard output
  and makes copies in the files.

What this means in relative English is that the output is recorded to a file
(as in script_file  log_file) but you see it on the screen (as in 
script_file, which normally comes to STDOUT).  We use this for automated
process run by BMC's Enterprise Control System, where I want a log file on
my machine, and the ECS wants a copy for it's sysout log.

HTH,
Mike

---
===
Michael P. Vergara  | I've got a PBS mind in an MTV world
Oracle DBA  |
Guidant Corporation |


-Original Message-
Sent: Wednesday, July 11, 2001 7:12 AM
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

script_file  log_file
script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Vergara, Michael (TEM)
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: OT: Unix tee command

2001-07-11 Thread Jared . Still



The second one copies output to the log file.

It still appears on your screen as well.

Jared



   

Erik Williams  

ewilliams@bro   To: Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]   
wnco.comcc:   

Sent by: Subject: OT: Unix tee command 

[EMAIL PROTECTED] 

om 

   

   

07/11/01 07:12 

AM 

Please respond 

to ORACLE-L

   

   





I do not understand the difference between these two commands:

   script_file  log_file
   script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

Thanks
Erik


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Erik Williams
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: OT: Unix tee command

2001-07-11 Thread Oliver Artelt


tee copies it's standard input both to standard output and the file. You can 
see what it does and have a log file after that.

BTW man tee is faster than putting this onto the list

oli


[EMAIL PROTECTED] wrote:
 I do not understand the difference between these two commands:
 
   script_file  log_file
   script_file | tee log_file
 
 As I understand, the first runs and redirects its standard output to a log
 file. The second runs and pipes its standard output to the tee command,
 which copies its standard input into its standard output. I have been
 instructed to use the latter, but dont want to do it blindly without
 understanding why.
 
 Thanks
 Erik
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: Erik Williams
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
 San Diego, California-- Public Internet access / Mailing Lists
 
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
 
 

-- 
Oliver Artelt
Oracle Certified DBA

cubeoffice GmbH  Co.KG # jordanstrasse 7 # 39112 magdeburg
telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19
email: [EMAIL PROTECTED] # web: http://www.cubeoffice.de
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Oliver Artelt
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).