Hi,

Thanks...

How can I code a line feed in my filter via the Replace function ?

I should have something like
REPLACE($Host Name and Aliases$, "??? How do I put the LF here ???",
"")

Regards
Pascal

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Axton
Sent: Thursday, November 06, 2008 5:36 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

http://en.wikipedia.org/wiki/Newline#Common_problems

Try replacing the CR/LF with a LF if the user originates from the
mid-tier.

Line feed, 0x0A (10)
Carriage Return, 0x0D (13)

Axton Grams

On Thu, Nov 6, 2008 at 9:07 AM, Tournier, Pascal
<[EMAIL PROTECTED]> wrote:
> **
>
> 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
>
>
>
> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
> html___

________________________________________________________________________
_______
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