Why we use ./ while running a script.
As we all know there is PATH environmental variable. And some paths will be defined for this. When we give a script name as such, the shell will search for this script name in those paths and if not found, the script will not get executed. This is why sometimes we get the error saying that the specified script not found. So to avoid this, either you add the pathname where your scripts resides to the PATH variable or run the job as ./ [ if your job is in the current directory where you are standing] or give the absolute path for running the job.
.

Leave a Reply