tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: crontab(1) using stdin
наб 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
Home |
Main Index |
Thread Index |
Old Index