Skip to content
Main Menu
  • Home
  • Blog
  • Contact

DevOps Fu

Tips and Tricks for DevOps Engineers

  • Home
  • Blog
  • Contact

Tag: shell-script

  • Home
  • Blog
  • shell-script

How to redirect all stdout/stderr to syslog?

May 24, 2018March 25, 2019 Fabrice

An easy way to redirect all stdout/stderr of a given process to syslog is to do the following in a bash script: exec 1> >(logger -t MYTAG) 2>&1 Please note this only works with bash as this is a bash… Read More

Sysadminbash, shell-scriptLeave a comment

Recent Posts

  • How to persist variables in a loop from a find command in Bash?
  • How to iterate an array in Bash?
  • How to trim leading and trailing characters in Bash?
  • How to install jq on CentOS?
  • Magic SysRq cheatsheet

Categories

  • Automation
  • AWS
  • Bash
  • CentOS
  • Containers
  • Cryptography
  • Database
  • Development
  • Docker
  • Git
  • Linux
  • Python
  • Sysadmin
  • Virtualization

Archives

  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
Copyright © 2018-2019 Fabrice Triboix
Best Business by Axle Themes