Hi,

Yes in fact I tried to remove the Return character via the replace function but 
as you said all my lines become only one and even so I still have the ^M like :

FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep
     >                   ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i 
"145.245.32.217" -d "BAS" -m "" -h "prpigel^Mtest1^Mtest3"
<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep>

So even if I remove the Return character I still have ^M

I'm running ARS 7.0.01 patch 003...

It fails with Explorer 6 where it works with Firefox.. but IE is the standard 
in my company ;o)

Thanks
Regards

-----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Grooms, Frederick W
Sent: Thursday, November 06, 2008 3:40 PM
To: arslist@ARSLIST.ORG
Subject: Re: Error with Mid-Tier which I do not get with the user tool as it 
seems that the specific character ^M is added by the end of each line of a 
field passed in parameter of a Run Process

^M  (Control-M) is a Return character so I don't think you will just be able to 
do a replace on it (as that would cause all of your lines to become one)

What version(s) are you running?

- - - - - - - - - - - -
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Tournier, Pascal
Sent: Thursday, November 06, 2008 8:08 AM
To: arslist@ARSLIST.ORG
Subject: Error with Mid-Tier which I do not get with the user tool as it seems 
that the specific character ^M is added by the end of each line of a field 
passed in parameter of a Run Process

Hi,

We have one issue with the mid-tier which we do not have with the user tool. In 
fact we have a filter which runs on a "Submit" or "Modify" action. This filter 
calls a C program on the server where the goal is to check the format of the 
data in a field and that those data are not replicated on any other entry.

So basically the value contained in this field is the parameter of the Run 
process action. So just for information the command looks like :

$PROCESS$ ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i "$IP Address$" 
-d "$DNS Domain$" -m "$Duplicate Host Name$" -h "$Host Name and Aliases$"

Everything works fine with the user tool but we have issue with the mid-tier 
where we get one error.

The logs with the user tool like :

 1: Set Fields
<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep
     >                   ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i 
"145.245.32.217" -d "BAS" -m "" -h "prpigel
test1
test3"
<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep>
                 Exit code: 0  Value: prpigel
test1
test3
<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep>
               Host Name and Aliases (536870912) = prpigel
test1
test3                                                  

Where with Mid-tier I get :

 1: Set Fields
<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep>
                   ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i 
"145.245.32.217" -d "BAS" -m "" -h "prpigel^M
test1^M
test3"
<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep
     >                   Exit code: 0  Value: ERROR: The hostname prpigel^M has 
an invalid syntax
The name should:
  - begin with a letter or a digit,
  - end with a letter or a digit,
  - and only contains letters,digits or hyphens (-)
<FLTR> <TID: 0000000009> 

As you can see, the problem with the mid-tier is that there is this strange 
character (^M) added after each line when I sent the field value in 
parameter...And as the C programm itself is supposed to check that there is no 
duplicate entry eo stange character in ech name, he see this ^M so he created a 
error saying that the syntay is wrong....

Please note that this error is appearing in Internet Explorer but not on 
Firefox ???

I tried to do a replace just before calling the c prog but this doesn't fix the 
problem

REPLACE($Host Name and Aliases$,  "^M",  "")

Here the log :

<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep
     >         0: Set Fields
<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      > <Client-RPC: 
390620   > <USER: tourniep
     >               Host Name and Aliases (536870912) = prpigel^M
test1^M
test3
<FLTR> <TID: 0000000009> 

Can someone please explain me how to get read of this ^M which creates error on 
my system....

Thanks
Regards
Pascal
 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to