tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: crontab(1) using stdin



On Wed, Oct 30, 2024 at 06:29:57PM +0100, Edgar Fuß wrote:
> > If NetBSD "crontab" errors with 
> > "use crontab - to replace your crontab from the standard input stream"
> > then that's an improvement over both the standard and the status quo IMO
> While I agree that what POSIX demands is not ideal, NetBSD's crontab(1) 
> behaviour prevents me from writing portable scripts.
Here more than ever, "better" doesn't mean "right" unfortunately.

You can still write this portably:
  echo crontab > ./-
  crontab - < -
  rm -
unideal, sure, but.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index