Date: Sun, 09 Dec 2001 10:08:53 -0500 From: Marty Landman <marty@face2interface.com> To: questions@FreeBSD.ORG Subject: question not asked (sysadmin - Perl?) Message-ID: <5.1.0.14.0.20011209100829.00a7bec0@pop.ulster.net>
next in thread | raw e-mail | index | archive | help
Hi,
I think this question is in the spirit of "the only dumb questions are the
ones left unasked."
I've got the following program which is a test extracted from a formerly
running script on a website. Actually I slightly altered this for posting
to remove HTML tagging.
------------------------------------------------------------
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
use Cwd;
for($root = cwd()) {print "Root eq $root"}
__END__
------------------------------------------------------------
The permissions are 755, and it's installed on the cgi-bin. When I run this
from a browser I get an empty string for Root, but when I run this from the
command line I get my root directory. This used to work and I won't be able
to talk to tech support till tomorrow. I know nothing about system
administration; but that's where I'm guessing the answer is.
FWIW I have a standalone box at home in which I installed Free_BSD and
Perl, unfortunately no Apache or network connection to my office network. :(
I am guessing that something about the way in which the script runs when
called by a browser is disabling the Perl cwd() command where when run from
the command line it is enabled. Am I getting warm?
Thanks in advance,
Marty (realizing it's time to start learning about some of this stuff)
Website Creation Made SIMPL(tm)
http://face2interface.com/Home/Demo.shtml
WebSafe Color Picker -- http://face2interface.com/Websafe
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011209100829.00a7bec0>
