Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

error-handling

Trap, ERR, and echoing the error line

August 9, 2022 by Magenaut

I’m trying to create some error reporting using a Trap to call a function on all errors:

Categories Q&A, Unix & Linux Tags bash, error-handling, shell-script, trap Leave a comment

How to check whether a command such as curl completed without error?

August 7, 2022 by Magenaut

I am using curl to upload a file to a server via an HTTP post.

Categories Q&A, Unix & Linux Tags curl, error-handling, http Leave a comment

Best practice to use $? in bash?

August 7, 2022 by Magenaut

When I read this answer about $? another question comes to mind.

Categories Q&A, Unix & Linux Tags bash, error-handling, shell Leave a comment

How to trigger error using Trap command

August 7, 2022 by Magenaut

I am using Ubuntu 12.04.2. I am trying to use “trap” command to capture abnormal or error in my shell script but I am also trying to manually trigger “Error” exit.

Categories Q&A, Unix & Linux Tags bash, error-handling, shell, trap Leave a comment
Newer posts
← Previous Page1 … Page3 Page4
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress