How to run the script ?
i have a perl script in myfolder .
directory structure is /root/myfolder when i stay at "myfolder " directory i run by "./my_script" [....@myfolder]#./myscript ===>it works . Now, i am at the "root" folder i.e one levl up directory . how do i run the script from the "root" directory Now? [....@root] how do i run the script now ? |
myfolder/myscript
You could also do, cd myfolder; ./myscript on one line. Of course, if the script doesn't do something such as install software on the system, perhaps you shouldn't be running it as root. |
to add to that and make it as clear as possible... if you are running a script in the current directory, you use "./<name>".
If you are not in the same directory as the script, just enter the name of the script.. without "./" Example: Code:
$ pwd |
All times are GMT -5. The time now is 05:39 PM. |