I have to move a production webserver from one server to another, this involves rebuilding a rather ancient perl install from the ground up on the wintel platform, I have been searching for days for arsperl 1.71, takingover this job from someone else I cannot find the *.* file..any help welcomed thanks
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <arsperl-users@arsperl.org> Sent: Thursday, August 09, 2007 11:29 AM Subject: Arsperl-users Digest, Vol 16, Issue 4 > Send Arsperl-users mailing list submissions to > arsperl-users@arsperl.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/arsperl-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Arsperl-users digest..." > > > Today's Topics: > > 1. Re: Incorrect format for a diary field (Peter Farr) > 2. ARSPerl newbie: How to list field values from a form? (Ravi) > 3. Re: ARSPerl newbie: How to list field values from a form? > (Thilo Stapff) > 4. Re: ARSPerl newbie: How to list field values from a form? > ( Jarl Gr?neng ) > 5. Re: ARSPerl newbie: How to list field values from a form? > (Clayton Scott) > 6. Re: ARSPerl newbie: How to list field values from a form? > (Thilo Stapff) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 2 Aug 2007 15:48:52 -0400 (EDT) > From: "Peter Farr" <[EMAIL PROTECTED]> > Subject: Re: [Arsperl-users] Incorrect format for a diary field > To: "ARSperl User Discussion" <arsperl-users@arsperl.org> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > Thanks Jeff. > -- > Regards, > Peter > > > On Tue, July 31, 2007 14:39, Jeff Murphy wrote: >> Peter Farr wrote: >>> I am trying to use the ARS Perl interface to extract some data from >>> Remedy >>> (v5 and v7). I will say up front that I am not extremely >>> Remedy-literate. >>> When I open some (many) forms using: >>> >>> $f = new ARS::form(-form => $schema, -connection => $ars); >>> >>> I get error 339 "Incorrect format for a diary field". Is there some way >>> around this? >>> >>> ARSPerl-1.90 on Linux 2.6. ars_APIVersion() tells me I am compiled >>> against >>> API version 7 on one system and version 9 on the other. I get the same >>> message on either system. >>> >> >> >> >> try >> >> my $a = new ARS($server, $user, $pass); >> my $f = $a->openForm($schema); >> my @e = $f->query('1 = 1'); >> print join(', ', @e), "\n"; >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 08 Aug 2007 13:16:53 -0400 > From: Ravi <[EMAIL PROTECTED]> > Subject: [Arsperl-users] ARSPerl newbie: How to list field values from > a form? > To: ARSperl User Discussion <arsperl-users@arsperl.org> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi:I am trying query a schema and print a fieldname and values for all > records with a qualifying filter. I can't seem to figure out which > function to use and how. This is what I have now and I get 0 records. Is > asr_GetListEntry the right function? Does someone have a sample script > or point me to the right one in the example dir? > > $schema = "My:Alarm Base"; > $qs = qq/'Category' = "Voice"/; > ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || > die "error in ars_LoadQualifier"; > > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); > > foreach $entry_id (sort keys %entries) { > printf("%s %s\n", $entry_id, $entries{$entry_id}); > } > > > Thanks > Ravi > > > > > ------------------------------ > > Message: 3 > Date: Thu, 09 Aug 2007 11:01:16 +0200 > From: Thilo Stapff <[EMAIL PROTECTED]> > Subject: Re: [Arsperl-users] ARSPerl newbie: How to list field values > from a form? > To: ARSperl User Discussion <arsperl-users@arsperl.org> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > ars_GetListEntry needs at least one more parameter (firstRetrieve, > usually = 0): > > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); > > instead of > > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); > > > Moreover, you should always check for errors after calling an API > function, e.g. > > die "ars_GetListEntry( $schema, $qs ): $ars_errstr\n" if $ars_errstr; > > > You might also try using the field ID of "Category" instead of the field > name in the qualifier string. > > > Regards, > Thilo Stapff > > > Ravi wrote: >> Hi:I am trying query a schema and print a fieldname and values for all >> records with a qualifying filter. I can't seem to figure out which >> function to use and how. This is what I have now and I get 0 records. Is >> asr_GetListEntry the right function? Does someone have a sample script >> or point me to the right one in the example dir? >> >> $schema = "My:Alarm Base"; >> $qs = qq/'Category' = "Voice"/; >> ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || >> die "error in ars_LoadQualifier"; >> >> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >> >> foreach $entry_id (sort keys %entries) { >> printf("%s %s\n", $entry_id, $entries{$entry_id}); >> } >> >> >> Thanks >> Ravi >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > > > ------------------------------ > > Message: 4 > Date: Thu, 9 Aug 2007 19:17:50 +0200 > From: " Jarl Gr?neng " <[EMAIL PROTECTED]> > Subject: Re: [Arsperl-users] ARSPerl newbie: How to list field values > from a form? > To: "ARSperl User Discussion" <arsperl-users@arsperl.org> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > I does not like the die parameter if you got an error. You may miss > the clean-up part. > > - > Jarl > > On 8/9/07, Thilo Stapff <[EMAIL PROTECTED]> wrote: >> ars_GetListEntry needs at least one more parameter (firstRetrieve, >> usually = 0): >> >> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); >> >> instead of >> >> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >> >> >> Moreover, you should always check for errors after calling an API >> function, e.g. >> >> die "ars_GetListEntry( $schema, $qs ): $ars_errstr\n" if $ars_errstr; >> >> >> You might also try using the field ID of "Category" instead of the field >> name in the qualifier string. >> >> >> Regards, >> Thilo Stapff >> >> >> Ravi wrote: >> > Hi:I am trying query a schema and print a fieldname and values for all >> > records with a qualifying filter. I can't seem to figure out which >> > function to use and how. This is what I have now and I get 0 records. >> > Is >> > asr_GetListEntry the right function? Does someone have a sample script >> > or point me to the right one in the example dir? >> > >> > $schema = "My:Alarm Base"; >> > $qs = qq/'Category' = "Voice"/; >> > ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || >> > die "error in ars_LoadQualifier"; >> > >> > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >> > >> > foreach $entry_id (sort keys %entries) { >> > printf("%s %s\n", $entry_id, $entries{$entry_id}); >> > } >> > >> > >> > Thanks >> > Ravi >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Splunk Inc. >> > Still grepping through log files to find problems? Stop. >> > Now Search log events and configuration files using AJAX and a browser. >> > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > _______________________________________________ >> > Arsperl-users mailing list >> > Arsperl-users@arsperl.org >> > https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > > ------------------------------ > > Message: 5 > Date: Thu, 9 Aug 2007 14:03:05 -0400 > From: "Clayton Scott" <[EMAIL PROTECTED]> > Subject: Re: [Arsperl-users] ARSPerl newbie: How to list field values > from a form? > To: "ARSperl User Discussion" <arsperl-users@arsperl.org> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Using "die" is just an example. > > You could also "warn" and continue, or whatever you want. > Just check the value of $ars_errstr. > > if ($ars_errstr){ > # do what you need to do if there is an error > } > > On 8/9/07, Jarl Gr?neng <[EMAIL PROTECTED]> wrote: >> I does not like the die parameter if you got an error. You may miss >> the clean-up part. >> >> - >> Jarl >> >> On 8/9/07, Thilo Stapff <[EMAIL PROTECTED]> wrote: >> > ars_GetListEntry needs at least one more parameter (firstRetrieve, >> > usually = 0): >> > >> > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); >> > >> > instead of >> > >> > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >> > >> > >> > Moreover, you should always check for errors after calling an API >> > function, e.g. >> > >> > die "ars_GetListEntry( $schema, $qs ): $ars_errstr\n" if >> > $ars_errstr; >> > >> > >> > You might also try using the field ID of "Category" instead of the >> > field >> > name in the qualifier string. >> > >> > >> > Regards, >> > Thilo Stapff >> > >> > >> > Ravi wrote: >> > > Hi:I am trying query a schema and print a fieldname and values for >> > > all >> > > records with a qualifying filter. I can't seem to figure out which >> > > function to use and how. This is what I have now and I get 0 records. >> > > Is >> > > asr_GetListEntry the right function? Does someone have a sample >> > > script >> > > or point me to the right one in the example dir? >> > > >> > > $schema = "My:Alarm Base"; >> > > $qs = qq/'Category' = "Voice"/; >> > > ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || >> > > die "error in ars_LoadQualifier"; >> > > >> > > %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >> > > >> > > foreach $entry_id (sort keys %entries) { >> > > printf("%s %s\n", $entry_id, $entries{$entry_id}); >> > > } >> > > >> > > >> > > Thanks >> > > Ravi >> > > >> > > >> > > ------------------------------------------------------------------------- >> > > This SF.net email is sponsored by: Splunk Inc. >> > > Still grepping through log files to find problems? Stop. >> > > Now Search log events and configuration files using AJAX and a >> > > browser. >> > > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > > _______________________________________________ >> > > Arsperl-users mailing list >> > > Arsperl-users@arsperl.org >> > > https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Splunk Inc. >> > Still grepping through log files to find problems? Stop. >> > Now Search log events and configuration files using AJAX and a browser. >> > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > _______________________________________________ >> > Arsperl-users mailing list >> > Arsperl-users@arsperl.org >> > https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > -- > > Clayton Scott > [EMAIL PROTECTED] > > > > ------------------------------ > > Message: 6 > Date: Thu, 09 Aug 2007 20:29:12 +0200 > From: Thilo Stapff <[EMAIL PROTECTED]> > Subject: Re: [Arsperl-users] ARSPerl newbie: How to list field values > from a form? > To: ARSperl User Discussion <arsperl-users@arsperl.org> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I'm not sure what you are talking about. > > ARTermination() is always called on exit because ARS.xs implements a > destructor function for ARControlStructPtr objects. > > Perl also closes filehandles automatically. > > If you have other resources which need cleanup, you can wrap your code > into an "eval" block: > > > eval { > ... > > ars_GetListEntry( .... ); > die "Error message\n" if $ars_errstr; > > ... > } > > warn $@ if $@; > > # do cleanup here > > > So, in my opinion, in most cases the use of "die" should be just fine. > > > Best regards, > Thilo > > > Jarl Gr?neng wrote: >> I does not like the die parameter if you got an error. You may miss >> the clean-up part. >> >> - >> Jarl >> >> On 8/9/07, Thilo Stapff <[EMAIL PROTECTED]> wrote: >>> ars_GetListEntry needs at least one more parameter (firstRetrieve, >>> usually = 0): >>> >>> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); >>> >>> instead of >>> >>> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >>> >>> >>> Moreover, you should always check for errors after calling an API >>> function, e.g. >>> >>> die "ars_GetListEntry( $schema, $qs ): $ars_errstr\n" if $ars_errstr; >>> >>> >>> You might also try using the field ID of "Category" instead of the field >>> name in the qualifier string. >>> >>> >>> Regards, >>> Thilo Stapff >>> >>> >>> Ravi wrote: >>>> Hi:I am trying query a schema and print a fieldname and values for all >>>> records with a qualifying filter. I can't seem to figure out which >>>> function to use and how. This is what I have now and I get 0 records. >>>> Is >>>> asr_GetListEntry the right function? Does someone have a sample script >>>> or point me to the right one in the example dir? >>>> >>>> $schema = "My:Alarm Base"; >>>> $qs = qq/'Category' = "Voice"/; >>>> ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || >>>> die "error in ars_LoadQualifier"; >>>> >>>> %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); >>>> >>>> foreach $entry_id (sort keys %entries) { >>>> printf("%s %s\n", $entry_id, $entries{$entry_id}); >>>> } >>>> >>>> >>>> Thanks >>>> Ravi >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Splunk Inc. >>>> Still grepping through log files to find problems? Stop. >>>> Now Search log events and configuration files using AJAX and a browser. >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>> _______________________________________________ >>>> Arsperl-users mailing list >>>> Arsperl-users@arsperl.org >>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Arsperl-users mailing list >>> Arsperl-users@arsperl.org >>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > > End of Arsperl-users Digest, Vol 16, Issue 4 > ******************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users