From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 14:00:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A450837B405 for ; Tue, 22 Apr 2003 14:00:58 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FD4C43F75 for ; Tue, 22 Apr 2003 14:00:57 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h3ML0tUv001475; Wed, 23 Apr 2003 07:00:56 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h3ML0rg9026386; Wed, 23 Apr 2003 07:00:55 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Wed, 23 Apr 2003 07:00:53 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Sergey Zaikov In-Reply-To: <1051024696@p66.f5.n5022.z2.fidonet> Message-ID: <20030423065742.G26299-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Questions@freebsd.Org" Subject: Re: the ps utility and cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 21:00:59 -0000 On Tue, 22 Apr 2003, Sergey Zaikov wrote: > I have a question about a key -x from man ps(1). > The reason of my question may be: misunderstanding man ps(1), errata at man > ps(1) or error in ps utility. > > (My FreeBSD version: > FreeBSD acc.acc.tula.ru 4.7-RELEASE FreeBSD 4.7-RELEASE #38: Thu Mar 20 > 09:31:30 MSK 2003 acc107_3@acc.acc.tula.ru:/usr/obj/usr/src/sys/Z i386) > > Man ps (1) says: > [*SKIP*] > -x Display information about processes without controlling termi- > nals. > [*SKIP*] > A processes, started from cron, is processes without controlling terminals. (Or > I samething don't understand:) > So: > $> ps -ax -U acc107_3 > must diplays it and > $>ps -a -U acc107_3 > should don't displays this processes. > The -U flag forces the -x flag. This is not documented in the manpage. See /usr/src/bin/ps/ps.c for details. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/