From the course: Troubleshooting and Debugging Bash

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Piping status

Piping status - Bash Tutorial

From the course: Troubleshooting and Debugging Bash

Start my 1-month free trial

Piping status

- [Narrator] Writing data and behavior out to a log from your script helps it to approach the functionality of an application, especially when it comes to troubleshooting. Logs are incredibly useful in troubleshooting. You can write your scripts so that the script writes out a log that you can use and your users can use in troubleshooting its operations. Similar to echoing a statement that tells your system what part of the script was running when the script failed, you can also send output into a log for the same purpose. The pipe in scripting is a very useful character. If you think of it in terms of plumbing, you're not far off. The pipe sits between lines of arguments so that you can say, "Hey, "take this stuff from over here, "send it through a pipe to this other thing over there." But a pipe doesn't let you see what's inside of it. If you want to record what's happening at a particular point in a piped command, you…

Contents