Help!
I have written a perl cgi script, but in order for the script to work it needs to be able to access files in the /root directory and other various directory's on my server. I do have root permissions on the server. But I do not know how to tell the program to fetch the specific file. It keeps on searching for the file from the cgi-bin directory. So say for example i needed to access /var/info.txt it will search for .../cgi-bin/var/info.txt and not /var/info.txt
Thanks for all your time and effort you put into helping me, a very inexperienced beginner.
I have written a perl cgi script, but in order for the script to work it needs to be able to access files in the /root directory and other various directory's on my server. I do have root permissions on the server. But I do not know how to tell the program to fetch the specific file. It keeps on searching for the file from the cgi-bin directory. So say for example i needed to access /var/info.txt it will search for .../cgi-bin/var/info.txt and not /var/info.txt
Thanks for all your time and effort you put into helping me, a very inexperienced beginner.