Bug 5323

Summary: at now and batch commands
Product: [Retired] Red Hat Linux Reporter: paulh
Component: atAssignee: Bill Nottingham <notting>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-28 16:35:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description paulh 1999-09-23 12:41:28 UTC
The at now command does not work.

    echo "date" | at now

will never schedule execution. It seems that the job is
scheduled a few seconds *before* the current time.

As a consequence the 'batch' command does not work as it is
a script that executes at now.

Interestingly I have seen this same bug in IRIX,CLIX,AIX,
etc. The solution is to add 1 or 2 minutes depending on
the version of UNIX. This is because some at commands only
schedule to the nearest minute boundary viz

    echo "date" | at now + 2 minutes

Comment 1 Bernhard Rosenkraenzer 2000-02-16 14:07:59 UTC
Still happens in 6.2b3 - "now" apparently maps to `date  +%H:%M`, so seconds are
lost -> scheduled before current time.

Comment 2 Bill Nottingham 2000-02-16 20:42:59 UTC
Hmm.. it works OK for me here; at now casues
things to be run immediately.