how to make a perl script run in background..?

2006-10-15 Thread Vishwanath Chitnis

hi all,

have a query ...

i wanted to call a perl script from another script and that should run in
the back ground..any idea how this can be achieved?

thanks in advance,

vishwa


Re: need to parse and verify certain content..

2006-10-11 Thread Vishwanath Chitnis

ok, here is the code:

$webserver=apache1;
$platform=solaris;
$uname=abc123;
$password=abc123;

my $ie = Win32::IEAutomation->new(visible=>1,maximized=>1);

if ($webserver == apache1 && $platform == solaris){

$ie->gotoURL('http://xyz.test.com:8900/_cqr/test.cgi');

}

$ie->getTextBox("name:", "loginId")->SetValue($uname);# am passing username

$ie->getTextBox("name:", "password")->SetValue($password); # to pass the
password

$ie->getButton("caption:", "Submit")->Click; #this is to submit the
details...

$ie->getLink("linktext:", "xyz")->Click;# after i login i need to click on
particular link on the page
Content();#  after i am navigated,   i am trying to get contents from my
page...not sure if this is correct..
VerifyText($nick="google.com") ;# this is to verify whether google.com is
present in the contents returned...



now i am able to login successfully, and able to navigate to that particular
link as well...but after navigating i have to verify wehther certain
parameters are present or not...this is where i am struck.. any ideas how do
i verify..this
thnx
vish


On 10/11/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote:


 Provide a segment of code which can be run and produces
the error you are getting. These three lines of code will
not run. We don't know how you defined the $ie object, for
example. We should be able to copy and paste your supplied
code and run it locally.

Please send your code to the list, not to me personally.
Allow everyone to help you.



Charles K. Clarkson
--
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

Don't tread on my bandwidth. Trim your posts.
 -Original Message-
*From:* Vishwanath Chitnis [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, October 11, 2006 2:54 AM
*To:* [EMAIL PROTECTED]
*Subject:* Re: need to parse and verify certain content..



On 10/11/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote:
>
> Vishwanath Chitnis wrote:
>
> : is there any other way other than above mentioned to do this?
>
>How can we possibly tell with only those lines?
>
>Show more code. Something we can run that will illustrate
> your problem.
>
>
> HTH,
>
> Charles K. Clarkson
> --
> Mobile Homes Specialist
> Free Market Advocate
> Web Programmer



here is sample of code..

$ie->getLink("linktext:", "xyz")->Click;#am navigated to my xyz page
Content();#here i am trying to get contents from my page...not sure if
this is correct..
VerifyText($nick="google.com") ;# this is to verify whether google.com is
present in the contents returned...

let me know if you need some more info.

thnx




254 968-8328
>
> Don't tread on my bandwidth. Trim your posts.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> < http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>



need to parse and verify certain content..

2006-10-10 Thread Vishwanath Chitnis

hi,

i need to parse the content on a page (which are basically headers ) and
verify certain content is returned or not by my server . i am using IE
automation i tried using
Content();
VerifyText($string, [iflags])..but getting "Undefined subroutine
&main::Content called at main.pl line 35." this error..any ideas how this
can be done..?
is there any other way other than above mentioned to do this?

thanks in advance
vish


need info on where can i download the Net-SSH-Perl.ppd

2006-09-14 Thread Vishwanath Chitnis

hi all,

i need to install the the package NET::SSH::Perl and when i try to do that
through PPM i get the package not found error. so i am trying to install the
Net-SSH-Perl.ppd and then install the package. any idea i can get this PPD
file.i tried to search on net but could not get it there. or let me know if
i have any alternate solution for this.

thanks
vish