RE: Current directory path

2002-09-04 Thread Tillman, James
-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

RE: Current directory path

2002-09-04 Thread csaba . raduly
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

RE: Current directory path

2002-09-04 Thread Bellenger, Bruno \(Paris\)
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,

RE: Uptime of remote system??

2002-09-04 Thread Stanley . G . Martin
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 =

Win32::AdminMisc::UserGetMiscAttributes on a BDC

2002-09-04 Thread kadir
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=

RE: Current directory path

2002-09-04 Thread Carl Jolley
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

can't get cookies from web page through perl

2002-09-04 Thread TC Winquist
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

Re: can't get cookies from web page through perl

2002-09-04 Thread Adam Ingerman
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

AW: Current directory path

2002-09-04 Thread Kratz, Thomas
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.

RE: Uptime of remote system??

2002-09-04 Thread Stanley . G . Martin
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} =

Re: Uptime of remote system??

2002-09-04 Thread $Bill Luebkert
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

Re: can't get cookies from web page through perl

2002-09-04 Thread $Bill Luebkert
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

Eval and Net::FTP

2002-09-04 Thread Gary Nielson
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

RE: Eval and Net::FTP

2002-09-04 Thread Allegakoen, Justin Devanandan
-8- - ## long-time operations here: $ftp = Net::FTP-new($site, Timeout = 60, Passive = 1, Debug = 3) or die Can't connect: $@\n;

Re: can't get cookies from web page through perl

2002-09-04 Thread Carl Jolley
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

RE: can't get cookies from web page through perl

2002-09-04 Thread TC Winquist
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

perl module for 'clicking' links??

2002-09-04 Thread TC Winquist
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.

Re: can't get cookies from web page through perl

2002-09-04 Thread $Bill Luebkert
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

Re: perl module for 'clicking' links??

2002-09-04 Thread $Bill Luebkert
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

Re: perl module for 'clicking' links??

2002-09-04 Thread Ron Grabowski
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