Re: [Arsperl-users] Function to Close a ticket

2007-11-13 Thread Richard Hellier
All you need to do is call ars_MergeEntry and change the Status field to the value representing 'Closed'. E.g. you would write: my $response = ars_MergeEntry( $ctrl, $schema, 1028, 1, $ticket_number, $status_field_id, N ); where N is the numeric value

[Arsperl-users] Cannot connect to remote server

2007-11-13 Thread Wesley Schwengle
All, we currently have an issue with ARS perl and setting up the connection with our Remedy server. With this sample script we are trying to connect to the server: use strict; my ($server, $account, $password, $port) = (my-server.wanadoo.nl, username, passwd, 20320); my $c =

[Arsperl-users] Manually passing arguments to a cgi program

2007-11-13 Thread Steve McDonald
Can anyone help me with the syntax for passing arguments to a cgi program via the unix command line? Someone else is writing the web interface to the program and I don't want to wait to get the debugging started. Thanks!

Re: [Arsperl-users] Manually passing arguments to a cgi program

2007-11-13 Thread Steve McDonald
Looks like we don't have that installed here. I'll have to see what I can do. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Axton Sent: Tuesday, November 13, 2007 10:44 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] Manually passing

Re: [Arsperl-users] Manually passing arguments to a cgi program

2007-11-13 Thread Joseph Kubasek
Steve, Are you using the CGI Perl module version 2.57 or later? If so, you can pass the parameters on the command line: ./foo.cgi ticket=25314 action=close user=joeuser key=5df83sk3 Another option is to use the debug flag in your cgi: use CGI qw( -debug ); This should make the script prompt

Re: [Arsperl-users] Cannot connect to remote server

2007-11-13 Thread Thilo Stapff
As far as I understood, we should be able to connect eventhough we are using the 7.0 API and are using 6.3 on our Remedy server. I'm not sure about this. It should certainly work to run the 6.3 API against a 7.0 server, but not necessarily the other way round. Regards, Thilo

Re: [Arsperl-users] Manually passing arguments to a cgi program

2007-11-13 Thread Clayton Scott
Steve, Joe has the right idea. Just do as he says and you should be golden. The docs for the CGI module are on the command line at perldoc CGI or can be found online at search.cpan.org -- Clayton Scott [EMAIL PROTECTED]

Re: [Arsperl-users] Manually passing arguments to a cgi program

2007-11-13 Thread Steve McDonald
Works like a charm, thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Kubasek Sent: Tuesday, November 13, 2007 11:36 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] Manually passing arguments to a cgi program Steve, Are you