use strict; use warnings; my $c = ars_Login($rserver,$ruser,$rpass); if ($c) { print "connected succesfully to Remedy Server"; }else{ print "failed miserably: $ars_errstr"; }
If the server uses a specified TCP port instead of the portmapper, the login statement should look like this: my $c = ars_Login($rserver,$ruser,$rpass,"","",$tcpport); Generally it's recommended to check $ars_errstr after every API call. Regards, Thilo monty wrote: > website can still connect and authenticate successfully using ars = > version 1.74 (we are still using an older version of remedy but are = > moving soon to 7 I believe its 4 or 5 not sure how to check that either > I just need some help with the syntax how do I use ARSperl to > connect to my server? I have the username, pw and servername just not > sure how to connect should it be like this.. > $c=($rserver;$ruser;$rpass;); > if ($c) > print "connected succesfully to Remedy Server"; > if (!$c) > print "failed miserably"; > exit(); > > test it in perl. can anyone help with this? > Thanks in advance. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users