Skip site navigation (1) Skip section navigation (2)

Re: Creating Log file - run in background.

From: John Burski <John(dot)Burski(at)911ep(dot)com>
To:
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Creating Log file - run in background.
Date: 2000-12-14 17:24:14
Message-ID: 3A39023E.BD46F9C7@911ep.com (view raw or flat)
Thread:
Lists: pgsql-novice
Thanks, Gord!

You did a better job of clarifying than I did :-)

ghaverla(at)freenet(dot)edmonton(dot)ab(dot)ca wrote:

> On Thu, 14 Dec 2000, John Burski wrote:
>
> > Here's what the command is supposed to do:
> >
> >      nohup - Execute the following command, making it immune to "hangups" and
> >      with output to a non-tty device.
>
> Comes from hanging up the phone line connection to your computer.
> nohup => NO Hang UP
>
> >      < /dev/null - Input is redirected from the bit-bucket.  (Don't ask me why -
> >      I've not looked closely enough at the nitty-gritty to understand that yet).
>
> When you read /dev/null, you immediately get
> end of file.  Therefore, things don't get stalled
> waiting for input.
>
> >      >> /usr/local/pgsql/data/server.log - Redirect anything output to stdout to
> >      this file.
>
> Actually append.  But yes it is a redirect.
>
> >      2>>1 - Redirect and append anything output to stderr to stdout.  This
> >      causes both stdout and stderr to be logged in the same file
>
> stdin is known as file descriptor 0,
> stdout is known as file descriptor 1,
> stderr is known as file descriptor 2,
>
> So, above "binds" stderr and stdout and redirects to file.
>
> Gord
>
> Matter Realisations     http://www.materialisations.com/
> Gordon Haverland, B.Sc. M.Eng. President
> 101  9504 182 St. NW    Edmonton, AB, CA  T5T 3A7
> 780/481-8019            ghaverla @ freenet.edmonton.ab.ca
> 780/993-1274 (cell)

--
John Burski
Chief IT Cook and Bottlewasher
911 Emergency Products, St. Cloud, MN
(320) 656 0076

++++++++++++++++++++++++++++++++++
+ How's your cheese holding out? +
++++++++++++++++++++++++++++++++++




In response to

pgsql-novice by date

Next:From: SterlingDate: 2000-12-14 18:54:18
Subject: Re: Creating Log file - run in background.
Previous:From: Jeff FitzmyersDate: 2000-12-14 15:55:41
Subject: connect() failed: No route to host

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group