From owner-freebsd-current Thu Oct 22 16:13:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA19605 for freebsd-current-outgoing; Thu, 22 Oct 1998 16:13:58 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA19586; Thu, 22 Oct 1998 16:13:56 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id QAA01710; Thu, 22 Oct 1998 16:16:55 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810222316.QAA01710@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: "Bill Sandiford" cc: "Bill Sandiford" , "Mike Smith" , freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: FreeBSD 3.0 Release and pw command - Potential Bug? In-reply-to: Your message of "Thu, 22 Oct 1998 18:40:52 EDT." <000e01bdfe0d$09042b20$03a06bcf@ns1.interlinks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Oct 1998 16:16:55 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > If there was an error message or a return code I would of posted > it...however since there was none I didn't...Nothing comes up on the > screen...syslog doesn't print anything...I have even tried redirecting the > output to /dev/console so that I wouldn't miss something that happened while > cron was running the script...All produce nothing except for the text that > the script is supposed to print out. Ok, but that was only half the question; pw also returns status codes according to . Something like: echo password | pw args... echo "pw returned $?" Can you send a sample, minimal example that fails? I tried: azaria# crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.nextN12946 installed on Thu Oct 22 16:15:52 1998) # (Cron version -- $Id: crontab.c,v 1.11 1997/09/15 06:39:15 charnier Exp $) 16 * * * * /tmp/pwtest azaria# cat /tmp/pwtest #!/bin/sh echo password | /usr/sbin/pw useradd foo -h 0 azaria# finger foo Login: foo Name: User Foo Directory: /home/foo Shell: /bin/sh Never logged in. No Mail. No Plan. on a 3.0-RELEASE vintage system, so it doesn't seem to be fundamental breakage. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message