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

Re: mhastart.pl errors



Gunnar Hjalmarsson wrote:
Tim Gwinn wrote:
I had to modify the following line in the routine "sub shell":
from:
   if ($command eq 'mhonarc' or $command =~ /^mha-d/) {
to:
   if ($command eq 'mhonarc.pl' or $command =~ /^mha-d/) {

After this change, the commandline worked

I see. You have obviously renamed 'mhonarc' to 'mhonarc.pl'. That may have been useful when you run MHonArc from your Windows command line, but unnecessary when running it via mhastart.pl. As you noticed, mhastart.pl presupposes the original file name 'mhonarc', so you could just have renamed it back to the original name. Anyway, your fix is sufficient.

The above observation made me conclude that there is no reason to not accept file extensions, so I changed that line in the original script to:

if ( $command =~ /^(?:mhonarc|mha-d)/ ) {

Thanks for calling my attention to it, Tim!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl



[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]