Re: Perl Question
Carey, Appreciate the info. I knew about the ARSPerl site and went there for assistance on the install and also to look at code examples. That and this board have been very helpful...especially of late. We have an initiative to push more people into using Remedy here, which is great. The only bad thing is that we also had a reorg and I lost one of my developers, so I have been having to do more with less. It's been quite the challenge. Thanks again! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union Carey Matthew Black black@gmail. To COM arslist@ARSLIST.ORG Sent by: Action cc Request System discussion list Subject (ARSList)Re: Perl Question arsl...@arslist. ORG 07/28/2009 03:17 PM Please respond to arsl...@arslist.o RG Joseph, You will find some help for ARSPerl on ARSList. However you may find more help on the ARSPerl mailing list(s) too. https://lists.sourceforge.net/lists/listinfo/arsperl-users Hope that helps some in the future. :) Just to be clear, if the question is ARS related then ARSList is a good place to ask it.(Even if your actual problem is a Perl/Java issue. If it is directly ARS related.. then bring in on. :) ) However there are also more specialized places to ask detailed niche ARS questions too. (ARSPerl's list is only one of the other more specific ARS sites that I can think of.) --=20 Carey Matthew Black BMC Remedy AR System Skilled Professional (RSP) ARS =3D Action Request System(Remedy) Love, then teach Solution =3D People + Process + Tools Fast, Accurate, Cheap Pick two. On Tue, Jul 28, 2009 at 1:40 PM, Joseph Kaselljoseph_kas...@navyfederal.org wrote: Hello listers! I'm simultaneously diving into perl and arsperl for the first time and I'= m seeing a lot of possibilities at what one can do. =A0I'm also running int= o a bit of a headache in the following which, I'm sure, is a simple matter, b= ut I'd like some advice. The Perl script is as follows: #!/usr/local/bin/perl use ARS; ($c =3D ars_Login(servername, user, password)) || die ars_Login: $ars_errstr; if (!$c) {print(Could not connect to ARS ($ars_errstr)\n);exit(1);} ($r =3D ars_SetEntry($c, Joetest, 002, 0, 536870914, Bob)) || =A0 =A0 =A0 =A0 =A0 =A0die $ars_errstr; This works fine from the server console and from a run process within an active link. =A0My question has to do with the set entry command. =A0How = can I pass a variable from a Remedy field to field ID 536870914 on form Joetest in this script instead of the hard-coded value of Bob? =A0Again, I'm su= re this is a simple matter, but I'm new to this, and I'm very certain I'm overlooking something. =A0Appreciate the help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
Perl Question
Hello listers! I'm simultaneously diving into perl and arsperl for the first time and I'm seeing a lot of possibilities at what one can do. I'm also running into a bit of a headache in the following which, I'm sure, is a simple matter, but I'd like some advice. The Perl script is as follows: #!/usr/local/bin/perl use ARS; ($c = ars_Login(servername, user, password)) || die ars_Login: $ars_errstr; if (!$c) {print(Could not connect to ARS ($ars_errstr)\n);exit(1);} ($r = ars_SetEntry($c, Joetest, 002, 0, 536870914, Bob)) || die $ars_errstr; This works fine from the server console and from a run process within an active link. My question has to do with the set entry command. How can I pass a variable from a Remedy field to field ID 536870914 on form Joetest in this script instead of the hard-coded value of Bob? Again, I'm sure this is a simple matter, but I'm new to this, and I'm very certain I'm overlooking something. Appreciate the help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
Re: Perl Question
I think you are looking for the shift() function in perl. (Notice how I added in the $variable in your example to pull the data from the command line) Perl Help: http://perldoc.perl.org/index-language.html Fred -Original Message- From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Joseph Kasell Sent: Tuesday, July 28, 2009 12:41 PM To: arslist@ARSLIST.ORG Subject: Perl Question Hello listers! I'm simultaneously diving into perl and arsperl for the first time and I'm seeing a lot of possibilities at what one can do. I'm also running into a bit of a headache in the following which, I'm sure, is a simple matter, but I'd like some advice. The Perl script is as follows: #!/usr/local/bin/perl use ARS; my $variable = shift(); ($c = ars_Login(servername, user, password)) || die ars_Login: $ars_errstr; if (!$c) {print(Could not connect to ARS ($ars_errstr)\n);exit(1);} ($r = ars_SetEntry($c, Joetest, 002, 0, 536870914, $variable)) || die $ars_errstr; This works fine from the server console and from a run process within an active link. My question has to do with the set entry command. How can I pass a variable from a Remedy field to field ID 536870914 on form Joetest in this script instead of the hard-coded value of Bob? Again, I'm sure this is a simple matter, but I'm new to this, and I'm very certain I'm overlooking something. Appreciate the help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
Re: Perl Question
Fred, That was exactly it! Thank you for the quick response and help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union Grooms, Frederick W frederick.w.groo To m...@xo.comarslist@ARSLIST.ORG Sent by: Action cc Request System discussion list Subject (ARSList)Re: Perl Question arsl...@arslist. ORG 07/28/2009 01:49 PM Please respond to arsl...@arslist.o RG I think you are looking for the shift() function in perl. (Notice how I added in the $variable in your example to pull the data from the command line) Perl Help: http://perldoc.perl.org/index-language.html Fred -Original Message- From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Joseph Kasell Sent: Tuesday, July 28, 2009 12:41 PM To: arslist@ARSLIST.ORG Subject: Perl Question Hello listers! I'm simultaneously diving into perl and arsperl for the first time and I'm seeing a lot of possibilities at what one can do. I'm also running into a bit of a headache in the following which, I'm sure, is a simple matter, but I'd like some advice. The Perl script is as follows: #!/usr/local/bin/perl use ARS; my $variable =3D shift(); ($c =3D ars_Login(servername, user, password)) || die ars_Login: $ars_errstr; if (!$c) {print(Could not connect to ARS ($ars_errstr)\n);exit(1);} ($r =3D ars_SetEntry($c, Joetest, 002, 0, 536870914, $variable)) || die $ars_errstr; This works fine from the server console and from a run process within an active link. My question has to do with the set entry command. How can I pass a variable from a Remedy field to field ID 536870914 on form Joetest in this script instead of the hard-coded value of Bob? Again, I'm sure this is a simple matter, but I'm new to this, and I'm very certain I'm overlooking something. Appreciate the help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
Re: Perl Question
Joseph, You will find some help for ARSPerl on ARSList. However you may find more help on the ARSPerl mailing list(s) too. https://lists.sourceforge.net/lists/listinfo/arsperl-users Hope that helps some in the future. :) Just to be clear, if the question is ARS related then ARSList is a good place to ask it.(Even if your actual problem is a Perl/Java issue. If it is directly ARS related.. then bring in on. :) ) However there are also more specialized places to ask detailed niche ARS questions too. (ARSPerl's list is only one of the other more specific ARS sites that I can think of.) -- Carey Matthew Black BMC Remedy AR System Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On Tue, Jul 28, 2009 at 1:40 PM, Joseph Kaselljoseph_kas...@navyfederal.org wrote: Hello listers! I'm simultaneously diving into perl and arsperl for the first time and I'm seeing a lot of possibilities at what one can do. I'm also running into a bit of a headache in the following which, I'm sure, is a simple matter, but I'd like some advice. The Perl script is as follows: #!/usr/local/bin/perl use ARS; ($c = ars_Login(servername, user, password)) || die ars_Login: $ars_errstr; if (!$c) {print(Could not connect to ARS ($ars_errstr)\n);exit(1);} ($r = ars_SetEntry($c, Joetest, 002, 0, 536870914, Bob)) || die $ars_errstr; This works fine from the server console and from a run process within an active link. My question has to do with the set entry command. How can I pass a variable from a Remedy field to field ID 536870914 on form Joetest in this script instead of the hard-coded value of Bob? Again, I'm sure this is a simple matter, but I'm new to this, and I'm very certain I'm overlooking something. Appreciate the help! Joe Joseph Kasell Senior Systems Engineer Navy Federal Credit Union ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are