Update - using $ENV{http_referer} then splitting it to extract the HTML directory that calls the first script works but subsequently generated html pages then refer to the cgi-bin directory. I can then pass the directory info via a hidden form variable but that seems tedious. Reading and...
I'd like to backup files before appending new content on a Unix server... I've been using
$backup = 'cp oldfile.txt oldfileBU.txt>'
without knowing why it works. Is there a more correct way to do this that might allow a variable that contains he filename to be used instead of the filename itself?
I have a set of scripts for race administration that are being employed by different users. The code was developed to run in the users own directory (all directories are on the same Unix server). Each user has a locally modifiable configuration file that is called ('use') by the scripts but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.