Am 30.12.2015 um 10:50 schrieb Mantas Mikulėnas:
On Wed, Dec 30, 2015 at 11:46 AM, Reindl Harald <[email protected] <mailto:[email protected]>> wrote: Do you really have cronjobs which need to output stuff to ssh ptys? i have hundrets cronjobs which are running silent and if there is something wrong then it's echo'ed which means with crond you get a mail and *no* it's no option to generate a mail at your own when you design software over years which runs aboslutely silent and so you know for trigger a alter mail you just need to echo the problem in whatever class method and you get also PHP warnings for free the whole point of using echo in cronjobs is that you don't need to know anything about the mail-environment, frankly even not need to have access to the MTA or sendmail binary from your script Wait, so you're asking for StandardOutput=console to magically get piped to /usr/sbin/sendmail instead of actual console?
can you please stop press reply-all on a mailing-list or at least remove the additonal address by hand?
NO - how do you come to that weird conclusion?i just want systemd *not to touch* the stdout behavior when asked to do so - it don't need to know anything about ssh ptys, just don't touch stdout
i am asking for StandardOutput=console get piped to the terminal systemctl was called - the rest is done by crond as all the years before
if that simple "type=oneshot" service have something to say i want to know that *now* and not when i randomly look in logsfiles because that's the reason i am able to solve most problems before they are reported over years
0,*/15 * * * * root /usr/bin/systemctl start contentlounge-schedule.service 1,*/20 * * * * root /usr/bin/systemctl start contentlounge-docm.service 2,*/20 * * * * root /usr/bin/systemctl start contentlounge-podcast.service 30 6 * * * root /usr/bin/systemctl start contentlounge-cleanup.service
signature.asc
Description: OpenPGP digital signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
