![]() part, meaning "current directory")./myscript.py Note how the example you found for shellscripts specifies the directory in which the script is located (that's the. To make it work, you must specify where the script or program is located. The system again tries to find it through $PATH and fails. In your non-working example, you didn't specify the interpreter, so instead the script itself becomes the command to execute. This works because the 'python' program is automatically found through $PATH. In your working example, you are running python as the actual program, and the script's name is just a parameter. The final syntax is still the same, as long as you pay attention to what command you are running – that is, whether you are explicitly calling an interpreter or whether you're directly running the script as a program. It doesn't matter whether you're running a shell script or a Python script, and it doesn't even matter whether you're using sudo and/or nice or not. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |