Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one Perl/logger can be used at a time? #2

Open
onlyjob opened this issue Sep 2, 2020 · 0 comments
Open

Only one Perl/logger can be used at a time? #2

onlyjob opened this issue Sep 2, 2020 · 0 comments

Comments

@onlyjob
Copy link

onlyjob commented Sep 2, 2020

When I pipe the output to Perl logger, only one logger is working.

sh -c "tail -f /var/log/httpd/access_log | logger -p local6.notice -t apache" &  ## works
sh -c "tail -f /var/log/httpd/error_log  | logger -p local6.error -t apache" &   ## terminates

The above is running from a shell script on CentOS-7 and only the first logger is running.
With one logger running in the background, when I run logger test it hangs without doing anything.

Python logger don't exhibit such problem.

(logger is installed as /usr/local/bin/logger which is a symlink to /usr/local/bin/logger.pl).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant