![]() |
Something that may be of use to you guys
With many perl and other scripts it is necessary to know the FULL system path to your programs. Often Aliased paths do not work for calls in perl like Exec and System. One of my clients got an account with a host whose tech support was CRAP and after a week they still hadnt mailed me with the system path so I got annoyed and found out how to
write a perl script that searched their entire server from the root directory down for my executable files. As a utility its useful to people who dont code themselves but just install/ mod others scripts so I have tarted it up slightly and present it here. When I get time I will host it on my webmasters resource page at http://kwikfire.com .... Please note that on a huge distributed server network it might take a good few minutes to run |santa| ==========Cut below here ======================= #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); ############################################ $myfile="sa231er45.pl"; ############################################################## #Simply change shebang line to suit your server if needed....# # then change $myfile to be the *unique* filename of a file in # # your script directory - make one named with random text # # run this script by typing in its url in your browser...wait# ############################################################## print "Content-type: text/html\n\n"; print "Pathfinder by Mattinblack.... Searching for $myfile "; Above are either fully qualified paths or nothing!....DONE"; "); |
All times are GMT -4. The time now is 10:27 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc