Debug Shell Scripts | Troubleshooting Shell Script Errors

preview_player
Показать описание
Debug Shell Scripts Or Troubleshooting Shell Script Errors using dos2unix command or shellcheck website. When Shell scripting not executing properly, you can use this tricks to correct them back.

Рекомендации по теме
Комментарии
Автор

In the expressin cat is test a file you have in your script directory?

RC-Heli
Автор

I wrote my sh script in vs code and execute in Git bash.I want to log the error and output in file automatically while executing the shell script.I used logger function and used 1&>2 in code ..In log files, I can see the output and not error...error was showing in git bash.How to log both the files and code should be in vs code .

prashanabalaji
Автор

Very clear cut explanation sir do more videos on real time common issues with solutions and more videos on Jenkins and aws

mabashadudekula
Автор

Hi Techie, I am running some cmds in script and script is working fine but when I am checking the changes I want to made through scripts, thats not happening. means if I am making changes by running cmds manually then changes are happening. Could you please suggest something this? Thank you so much in advance.

PANKAJKUMAR-rhys
Автор

I am getting error code in my script...and it is closing the whole code...but I want to continue my next line if previous doesn't work...
How to handle this situation

ePrfssr
Автор

if input parameters are not given properly then how to handle error? like instead of numerical input alphabet is entered how to handle this error?

ashishsahoo
Автор

sir what is the use of -r option in read command.can u please tell me and my another question is what is the use dos2unix command while debugging our script

tamilselvan
Автор

Video is completely blurry, unable to see the screen. Kindly help.

tharunpk
visit shbcf.ru