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

Re: [MacPerl] WebTen path info



>You say: ...to a Mac server running WebTen. I do not have total access to
>>the box, and thus, in one of the scripts I am using, I make reference to
>>the absolute path of the CGI-BIN - but I can't telnet into said box, as
>>that capability is turned off/unavailable, and therefore can't use "pwd" or
>>similar to identify the path.

>That sounds like you have some scripts running.  If so, couldn't you get
>one of them to ask for you and put the information in some innocuous place?
>It's ugly and awkward, but doesn't it accomplish the task?  
>
>I'd love to hear if this works for you.
>
>If it fails for some reason, I'd like to hear about that.  Perhaps another
>ploy will work.
>
>If I got it all wrong, please pass along a clue or more.
>
>If you would like something clarified, I'll be happy to try.

And he responded:
>I'd love to hear if this works for you.

indeed it did. how silly I am not to have thought of it.

#!/usr/bin/perl

$dingle = `pwd`;

        print "Content-type: text/html\n\n";
        print "the path is $dingle\n";


thanks a lot!

best

andrew mckenzie




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch