Shell script Execute file in tmp directory

I am trying to execute shell script which i have created in tmp folder. i have granted permission as well to the script using command below.

chmod a+x tmp/test/

when i run the code i get permission denied error.

[root@server test]# ./
-bash: ./ Permission denied

1 answer

  • answered 2020-05-26 22:54 agc

    Try this workaround:

    (. tmp/test/