I have a script that is checking web links and works on my local
NT workstation. But I now need the NT web server's path so
I can check web pages on the web server.
How can I get the web server path?
If my server is called "webserver" and I can put "webserver/mypage.html" in my
browser url location entry and it brings up the page then I should be able to use:
"/webserver/mypage.html" as my path name in my script? But it says it cant find
the directory and file.
Please advise a way I can find out my server's absolute path so I can use it in
my script?? I really just need advice on finding the specific web server absolute
path so I can use it in my script. Not looking for any script assistance.
Also I do have the web server's IP address if that is something I can use?
Here is how it works so far fetching local files:
my $start_dir = '/inetpub/wwwroot/expo/cony.html';
Now my attempt on checking a web page on my NT server:
my $start_dir = '/webserver/mypage.html';
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.