How do I check for errors in bash?

Huỳnh Hiền

New member
How do I check for errors in bash?
Answer
He suggests using the following function for error handling in Bash:
#!/bin/bash # A slicker error handling routine # I put a variable in my scripts named PROGNAME which # holds the name of the program being run. You can get this # value from the first item on the command line ($0).
 

Tìm kiếm

Back
Top