Re: perl module for 'clicking' links??

2002-09-04 Thread Michael D. Smith
I'm not exactly sure what you want either, but no module is needed for: system ('start', 'C:\progra~1\intern~1\IEXPLORE.exe', 'http://yahoo.com'); opening the browser to a certain URL on your desktop. Bill's way will download the HTML into a file which is certainly useful many times. I just d

Re: perl module for 'clicking' links??

2002-09-04 Thread Ron Grabowski
T&C 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 " href=r/fo>Photos" on yahoo's index page. I would like a script that > would emulate that click and load the resulting page into the web brows

Re: perl module for 'clicking' links??

2002-09-04 Thread $Bill Luebkert
T&C 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 " href=r/fo>Photos" 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: can't get cookies from web page through perl

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

perl module for 'clicking' links??

2002-09-04 Thread T&C 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 "Photos" 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. It would load

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

2002-09-04 Thread T&C 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 i

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

2002-09-04 Thread Carl Jolley
On Wed, 4 Sep 2002, T&C 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

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"; $ftp->login($

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: can't get cookies from web page through perl

2002-09-04 Thread $Bill Luebkert
T&C 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 par

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() calle

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"}

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. > De

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

can't get cookies from web page through perl

2002-09-04 Thread T&C 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 send

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? > ^ > >> >

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: 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 = &DateCalc($os

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, Sept

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 directo

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