ok this is problem going to be real easy for one of you PERL gurus but
my little brain just can't figure it out. From the command line (Solaris
9) I can do this fine:
echo my little test | mailx -s "Test Message" [EMAIL PROTECTED]
But in PERL the below code does not work:
system("echo my lit
this is my hash below:
my %dept_and_names = ("Accounting", "John Montgomery",
"Customer Service", "Carol Jefferson",
"Customer Service", "Jill Paulo",
"Research and Development", "Jeffrey Johnson",
"Accountin
for some reason or another, my script won't create the text file that it
is supposed to create on the server. For example, I'm taking a survey
and calculating votes for a favorite song. The script IS calculating the
votes so the text file is being created somewhere, but the text file is
not sho
okay, I'm getting back into PERL after a long hiatus.
I'm using Mac OS X 10.3.9, Terminal, TextEdit to get started. I've used
this before in the past.
I write a simple script as described on page 8 of my beginners perl book
(CGI/Perl by Diane Zak - Course Technology's Web Warrior Series). This
This is my script
open(OUTFILE, ">>", "survey.txt") or die "$!";
I am runing this script through the webserver using a browswer,
(action="http://localhost/pathtothecgiscript/cgiscript.cgi";) and the
file, survey.txt, does NOT get created. When running from the command
line the file DOES get cre
I need to know how to give Apache (in OSX Panther) permission to create
a file. In other words, in my script I am using the "open" command to
create the file. But it doesn't get created. It works from the command
line. Here is my example below:
open(OUTFILE, ">>", "test.txt") or die "$!";
print
okay this may seem like a simple problem but here it goes:
when running the the script below from the unix (mac osx) command line
the "survey.txt" file is created and "this a test!!!" is written to the
file. But when running it from a browser the file is Not created and
"Browser test" is display