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

Re: Creating Log file - run in background.

From: Sterling <smullett(at)omeninc(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Chris <csmith(at)squiz(dot)net>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Creating Log file - run in background.
Date: 2000-12-14 08:17:39
Message-ID: 3A388223.BAF6CA12@omeninc.com (view raw or flat)
Thread:
Lists: pgsql-novice
H-

Ok. So the new command should look like this.

nohup /usr/local/pgsql/bin/postmaster -D  > >/usr/local/pgsql/data </dev/null
>>/usr/local/pgsql/data/server.log 2>>1 &

What are the > > 's for? Are they acting as ( ) 's like in perl or some other
language?

If so should they match? I'm getting lost in the > > and can't figure out if the >
> is actually in the command or part of the wrapping for my window terminal (it
stays when I resize the window so...)  or from my email client when it copies the
original post.

Thanks for all your help and replies. I just need to get up to speed on what
you're telling me. 8^)
-Sterling


Tom Lane wrote:

> >> Should the command look like this than:
> >> nohup /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data/server.log &
>
> > That should work, yep.
>
> Uh, nope.
>
> That will try to use /usr/local/pgsql/data/server.log as a directory.
>
> Your original advice was better.
>
>                         regards, tom lane


In response to

Responses

pgsql-novice by date

Next:From: Guy CorbazDate: 2000-12-14 08:34:37
Subject: Postgresql backups
Previous:From: pgsql-noviceDate: 2000-12-14 04:52:36
Subject:

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