Summary: | sys-process/cronbase: mixed up output of scripts from cron.* directories | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Component: | [OLD] Core system | Assignee: | Cron Team <cron-bugs+disabled> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | run-crons-script-prefix.patch |
Description
Amadeusz Żołnowski (RETIRED)
![]() Created attachment 405780 [details, diff]
run-crons-script-prefix.patch
Comment on attachment 405780 [details, diff] run-crons-script-prefix.patch rather than prefix each line, should be able to do: $SCRIPT 2>&1 | sed "1i${SCRIPT}:" if script produces no output, then sed won't do anything, but as soon as it produces at least one line, sed will add a header like: /etc/cron.daily/foo: unfortunately though, this now conflicts with bug 491520 where we track the exit status and bug 530416 where we use POSIX shell (so we can't check PIPESTATUS). *** This bug has been marked as a duplicate of bug 540274 *** |