batch -f command does not know working directory info at invocation time

2009-10-05 Thread Austin Hook
According to the man pages for at (or batch): The working directory, the environment (except for the variables TERM, TERMCAP, DISPLAY, and _), and the umask are retained from the time of invocation. But, oddly enough, at the time of actual invocation it seems not to know this

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Ingo Schwarze
Hi Austin, Austin Hook wrote on Mon, Oct 05, 2009 at 12:55:11PM -0700: [ citations reordered ] $ echo echo hello ee $ batch -f ee Cannot open input file: No such file or directory That looks like a bug to me. The function main() in at.c calls set_cron_cwd(), changing to /var/cron, before

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Bernd Siggy Brentrup
On Mon, Oct 05, 2009 at 12:55 -0700, Austin Hook wrote: According to the man pages for at (or batch): The working directory, the environment (except for the variables TERM, TERMCAP, DISPLAY, and _), and the umask are retained from the time of invocation. But, oddly enough, at

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Ted Unangst
On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup b...@free-it.org wrote: AFAICT from at(1), the code is still mostly T-Rex's implementation. You may want to have a look at https://launchpad.net/~at-ng for a reimplementation from scratch, The client side is mostly done I don't think one

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Bernd Siggy Brentrup
Hi Ted, better not wake up sleeping dogs :) On Mon, Oct 05, 2009 at 17:14 -0400, you wrote: On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup b...@free-it.org wrote: AFAICT from at(1), the code is still mostly T-Rex's implementation. You may want to have a look at

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Jacob Meuser
On Tue, Oct 06, 2009 at 02:48:59AM +0200, Bernd Siggy Brentrup wrote: Hi Ted, better not wake up sleeping dogs :) On Mon, Oct 05, 2009 at 17:14 -0400, you wrote: On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup b...@free-it.org wrote: AFAICT from at(1), the code is still mostly

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Theo de Raadt
On Mon, Oct 05, 2009 at 17:14 -0400, you wrote: On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup b...@free-it.org wrote: AFAICT from at(1), the code is still mostly T-Rex's implementation. You may want to have a look at https://launchpad.net/~at-ng for a reimplementation from

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Brynet
Bernd Siggy Brentrup wrote: The oldest sources by Thomas Koenig (aka T-Rex) I have at hand (3.1.8 iirc) definitely carry a GPL license statement. I'm curious in how far openBSD's source code for at differs to warrant a different license if at all possible. Up to now I only checked the

at BSD licensed [was: batch -f command does not know working directory info at invocation time]

2009-10-05 Thread Bernd Siggy Brentrup
On Tue, Oct 06, 2009 at 01:30 +, Jacob Meuser wrote: On Tue, Oct 06, 2009 at 02:48:59AM +0200, Bernd Siggy Brentrup wrote: Hi Ted, better not wake up sleeping dogs :) On Mon, Oct 05, 2009 at 17:14 -0400, you wrote: On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Bernd Siggy Brentrup
On Mon, Oct 05, 2009 at 19:35 -0600, Theo de Raadt wrote: On Mon, Oct 05, 2009 at 17:14 -0400, you wrote: On Mon, Oct 5, 2009 at 4:00 PM, Bernd Siggy Brentrup b...@free-it.org wrote: AFAICT from at(1), the code is still mostly T-Rex's implementation. You may want to have a look

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Theo de Raadt
The word goes Theo de Raadt himself is driving away ppl from using openBSD by pissing them of publicly. I am more than happy to drive away people who come to our mailing list trying to sell their wares.

Re: batch -f command does not know working directory info at invocation time

2009-10-05 Thread Bernd Siggy Brentrup
On Mon, Oct 05, 2009 at 20:47 -0600, Theo de Raadt wrote: The word goes Theo de Raadt himself is driving away ppl from using openBSD by pissing them of publicly. I am more than happy to drive away people who come to our mailing list trying to sell their wares. What exactly makes you think