[users@httpd] Perl scripts: Disappearing httpd at process list.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am encountering a very peculiar problem with perl script using the
following systems configuration:
   - Redhat Fedora Core 2 (Patched to the latest packages)
   - httpd (apache2) version 2.0.51
   - Perl version 5.8.3
   - kernel 2.6.10

Each time I surf to the perl script, one of the apache process will be
replaced with a "/usr/sbin/-e"
--------
[root@red1 perl]# ps -fe | grep apache
apache    4821  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4822  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4823  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4824  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4825  4820  0 05:07 ?        00:00:00 /usr/sbin/-e    -k
restart
apache    4826  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4827  4820  0 05:07 ?        00:00:00 /usr/sbin/httpd -k
restart
apache    4828  4820  0 05:07 ?        00:00:00 /usr/sbin/-e    -k
restart
--------

What I am executing is a simple perl script
--------
#!/usr/bin/perl

  print "Content-Type: text/html \n\n";
  print "<head><title>#continue#</title></head>";
  print "<P>Halo, this is a halo world";

  open OUT,">>out.tmp";
  print OUT "Testing\n";
  print OUT "\n\n"; 
  close OUT;
--------
I am able to see the sentence "Halo, this is a halo world" in the web
browser. However, the file out.tmp did not appear, even though my
directory permission was set to "777" and owner "apache". Irregardless,
even if I just perform a simple print to the browser, the process list
of apache will still be replaced by "/usr/sbin/-e" for each time I
executed my perl script.

The httpd logs do not yield anything interesting.

In addition, my perl script runs fine in bash.

Has anybody encounter such a problem before?
-- 
  Mike
  bugtraq77@xxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux