Re: crontab(1) using stdin

Steffen Nurpmeso <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <20241030233501.T82GzEyV@steffen%sdaoden.eu>
наб wrote in
 <q2pxxf2jv42trd53f3vu6n6656i2oxsne4p4pefirzq52mru7j@tarta.nabijaczleweli\
 .xyz>:
 |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.

OpenIndiana says

  #?1|oi-2024:steffen$ crontab -
  crontab: can't open your crontab file.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
|And in Fall, feel "The Dropbear Bard"s ball(s).
|
|The banded bear
|without a care,
|Banged on himself fore'er and e'er
|
|Farewell, dear collar bear
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.