![]() ![]() home/yourusername/some_directory/myscript.py, and you normally run it by startingīash and running this: cd ~/some_directory This is particularly prone to happening with SQLite Remember that the working directory of your script won't necessarily be the directory Open it for reading or writing - not if you import code from it), you need to This can easily trip you up - if you access another file in your script (that is, you bin/bash in the hashbang.) Common issues ¶ Make sure you take account of the working directory ¶ (At a rather meta level, you could also schedule a Bash script that way by specifying ![]() You can use the Bash chmod commandĬhmod +x /home/myusername/myproject/myscript.rb
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |