Fix “Exec format error” When Running Scripts With run-parts Command

3 Responses

  1. DANESH FOROUHARI says:

    Instead of hard-coding the path of the interpreter, e.g.
    #!/usr/bin/python3

    you could use
    #!/usr/bin/env python3

    This is more portable in case the interpreter is installed in some other (non-default) directory

  2. Jalal says:

    Hi,
    Thanks a lot…
    it is better to use shebang in every script.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.