![]() ![]() ![]() Try to determine the location where your scripts are and at the beginning of your script, add the path like. It differs from just executing the file with, e.g., /etc/vz/vz.conf in many ways: the most obvious is that the file doesn't need to be executable then you will think of running it with bash /etc/vz/vz.conf but this will only execute it in a child process, and the parent script will not see any modifications (e.g., of variables) the child makes. Let’s see how you can create a shell script and run it on Linux. Why can you not use the script name when you are in the same directory That is because your Linux systems looks for the executables to run in a few selected. The only executables that you can execute are either present in your PATH variable or initialization files (like aliases and functions). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |