NetBSD Problem Report #41759
From www@NetBSD.org Tue Jul 21 18:52:30 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id C92CF63BCA0
for <gnats-bugs@gnats.netbsd.org>; Tue, 21 Jul 2009 18:52:30 +0000 (UTC)
Message-Id: <20090721185230.9698363B898@www.NetBSD.org>
Date: Tue, 21 Jul 2009 18:52:30 +0000 (UTC)
From: ekamperi@gmail.com
Reply-To: ekamperi@gmail.com
To: gnats-bugs@NetBSD.org
Subject: at(1) doesn't print job's datetime upon job submission
X-Send-Pr-Version: www-1.0
>Number: 41759
>Category: bin
>Synopsis: at(1) doesn't print job's datetime upon job submission
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 21 18:55:00 +0000 2009
>Last-Modified: Sat Feb 20 00:40:02 +0000 2010
>Originator: Stathis Kamperis
>Release: NetBSD 5.0_STABLE
>Organization:
Aristotle University of Thessaloniki
>Environment:
NetBSD voyager 5.0_STABLE NetBSD 5.0_STABLE (MYGENERIC) #8: Mon Jul 6 19:55:40 EEST 2009 root@voyager:/usr/obj/sys/arch/i386/compile/MYGENERIC i386
>Description:
Quoting Issue 7:
In the POSIX locale, the following shall be written to standard error when a job has been successfully submitted:
"job %s at %s\n", at_job_id, <date>
...
>How-To-Repeat:
[stathis@voyager ~] at 22:00
clear
Job 48 will be executed using /bin/sh
[stathis@voyager ~]
Where it should look like this:
@solaris$ at 22:00
at> clear
at> <EOT>
commands will be executed using /bin/bash
job 1248206401.a at Tue Jul 21 22:00:00 2009 <--- this is what we miss
@solaris$ exit
>Fix:
I have a patch for DragonFly here: http://bugs.dragonflybsd.org/file580/at.diff
No idea, how relevant it is for NetBSD ( I didn't check the netbsd's at.c ).
Best regards,
Stathis
>Audit-Trail:
From: Christopher Berardi <cberardi@natoufa.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/41759
Date: Fri, 19 Feb 2010 19:39:43 -0500
This is a patch that will output the time of execution as well. So the output, using the above example, will be:
[stathis@voyager ~] at 22:00
clear
Job 48 will be executed using /bin/sh at Tue Jul 21 22:00:00 2009
[stathis@voyager ~]
--- at.c.orig 2010-02-19 19:33:18.000000000 -0500
+++ at.c 2010-02-19 19:30:57.000000000 -0500
@@ -414,7 +414,8 @@
(void)close(fd2);
(void)fprintf(stderr,
- "Job %d will be executed using /bin/sh\n", jobno);
+ "Job %d will be executed using /bin/sh at %s", jobno,
+ ctime(&runtimer));
}
static void
--
Christopher Berardi
http://www.natoufa.com/
Be still, and know that I am God (Psalms 46:10)
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.