Whenever I write a new Python script in Windows, to execute it on UNIX I need to first give permission through chmod
and then I have run dos2unix
to make it executable.
I don't want to run these commands. Is there any way to to add permission and UNIX formatting in the script itself?
P.S. I have checked this link.