-Original Message-
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 7:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Current directory path
[EMAIL PROTECTED] wrote:
Hi!
There is some way to get the current directory
On 04/09/2002 11:51:33 Tillman, James wrote:
[EMAIL PROTECTED] wrote:
Hi!
There is some way to get the current directory path of perl script?
^
Try core Cwd module.
That actually returns the current directory, which may or may not
A quick'n'dirty one :
$currentdirpath=`cd` ;
chomp $currentdirpath ;
_
Bruno Bellenger
Sr. Network/Systems Administrator
-Original Message-
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Monday,
I think it's the last reboot in GMT. Anyway, I didn't want to spend too
much time on it so this is what I did:
use DateManip;
$os_lastboot = $svruptime-{'LastBootUpTime'};
$os_lastboot = substr($os_lastboot, 0, index($os_lastboot, .)); #
only want left of period
$os_lastboot =
Hi to everyone!
I've being using Win32::AdminMisc::UserGetMiscAttributes on a W2K Advanced
Server PDC (SP3) for a while with no problems at all. However, i've found
serious problems using it on a BDC.
I wrote this simple script for testing
test code begin
use Win32::AdminMisc;
my $lName=
On Wed, 4 Sep 2002 [EMAIL PROTECTED] wrote:
On 04/09/2002 11:51:33 Tillman, James wrote:
[EMAIL PROTECTED] wrote:
Hi!
There is some way to get the current directory path of perl script?
^
Try core Cwd module.
That
I'm trying to use HTTP::Cookies and LWP::UserAgent to fake a real user HTTP
request. When executing this script from a browser, I want to set the
cookies that the website normally would and load the page that the website
normally would also. I can't get the cookie part to work. I'm able to
I'm trying to use HTTP::Cookies and LWP::UserAgent to fake a real user HTTP
request. When executing this script from a browser, I want to set the
cookies that the website normally would and load the page that the website
normally would also. I can't get the cookie part to work. I'm able to
Carl Jolley wrote:
AFAIK, on Windows's OSes the $0 variable is just the basename not the
full patch name. If the script was running as a cgi app, the
$ENV{PATH_TRANSLATED) _may_ provide the scripts full path name from
which the script's directory can be determined with a regex.
When you installed Date::Manip, a file called Manip with no extension
was created in (e.g. my location):
D:\Perl\Site\Lib\Date
In that file you should set your Timezone. Mine is CST6CDT.
In the file Manip.pm is a line:
$Cnf{GlobalCnf}= ;
Change it to read:
$Cnf{GlobalCnf} =
Khan, Moin wrote:
I am getting the error as follows:
use Date::Manip;
Server uptime is 20020903073500.00-420ERROR: Date::Manip unable to
determine TimeZone.
Date::Manip::Date_TimeZone called at D:/Perl/lib/Date/Manip.pm
line 627
Date::Manip::Date_Init() called at
TC Winquist wrote:
I'm trying to use HTTP::Cookies and LWP::UserAgent to fake a real user HTTP
request. When executing this script from a browser, I want to set the
cookies that the website normally would and load the page that the website
normally would also. I can't get the cookie part to
I am wanting to test to make sure that an ftp transfer in fact takes
place. Searching through newsgroups, saw several recommendations re: Perl
Cookbook's 16.21, which I have used below. I think I have done this
correctly -- code below -- but will this be enough?
I am assuming that if the script
-8-
-
## long-time operations here:
$ftp = Net::FTP-new($site,
Timeout = 60,
Passive = 1,
Debug = 3)
or die Can't connect: $@\n;
On Wed, 4 Sep 2002, TC Winquist wrote:
I'm trying to use HTTP::Cookies and LWP::UserAgent to fake a real user HTTP
request. When executing this script from a browser, I want to set the
cookies that the website normally would and load the page that the website
normally would also. I can't
I can't get the cookies to load when running the script from a domain other
than my domain (globalnamespace.com). I need to be able to load the cookie
set by my globalnamespace.com script from anywhere, not just from within
globalnamespace.com. I made the changes you recommended $Bill and this
I searched CPAN for a module that would emulate clicking a link on a web
page. Let's say I know that I want to click the link a
href=r/foPhotos/a on yahoo's index page. I would like a script that
would emulate that click and load the resulting page into the web browser
that calls the script.
TC Winquist wrote:
I can't get the cookies to load when running the script from a domain other
than my domain (globalnamespace.com). I need to be able to load the cookie
set by my globalnamespace.com script from anywhere, not just from within
globalnamespace.com. I made the changes you
TC Winquist wrote:
I searched CPAN for a module that would emulate clicking a link on a web
page. Let's say I know that I want to click the link a
href=r/foPhotos/a on yahoo's index page. I would like a script that
would emulate that click and load the resulting page into the web browser
TC Winquist wrote:
I searched CPAN for a module that would emulate clicking a link on a web
page. Let's say I know that I want to click the link a
href=r/foPhotos/a on yahoo's index page. I would like a script that
would emulate that click and load the resulting page into the web browser
20 matches
Mail list logo