Yea...I figured you would eventually come across that problem...thus pulling
the email contents via perl script instead of push via run process will be
about your only way to overcome the problem. 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:arsl...@arslist.org] On Behalf Of ?????????? ???????
Sent: Wednesday, December 17, 2008 4:03 AM
To: arslist@ARSLIST.ORG
Subject: Re: set fields by process error

The email body have a double quotes hence it conflicts mit "echo" comand

LJ Longwing ?????:
> **
> You should be able to do a search in Google for ARSPerl, this is the 
> perl interface to the Remedy API, it allows you to do ALLOT of stuff 
> in an automated fashion.
>
> ----------------------------------------------------------------------
> --
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *Ramey, Anne
> *Sent:* Thursday, December 11, 2008 10:06 AM
> *To:* arslist@ARSLIST.ORG
> *Subject:* Re: set fields by process error
>
> **
>
> Any pointers on doing that? I am trying to process an entire email 
> body. It's not a problem with the short tests,b ut it will be a 
> problem in production.
>
> Anne Ramey
>
> ***********************************
>
> */E-mail correspondence to and from this address may be subject to the 
> North Carolina Public Records Law and may be disclosed to third 
> parties only by an authorized State Official./*
>
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *LJ Longwing
> *Sent:* Thursday, December 11, 2008 12:02 PM
> *To:* arslist@ARSLIST.ORG
> *Subject:* Re: set fields by process error
>
> **
>
> In that case I have had to write some perl scripts where it logs into 
> Remedy itself and grabs the values in question out of a record instead 
> of trying to pass all of the information on the command line.
>
> ----------------------------------------------------------------------
> --
>
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *J.T. Shyman
> *Sent:* Thursday, December 11, 2008 9:50 AM
> *To:* arslist@ARSLIST.ORG
> *Subject:* Re: set fields by process error
>
> **
>
> Good point. I assumed..and yes, I know what they say about assumed:
>
> "50 bonus points for using all of your tiles in Scrabble"
>
> J
>
> The @@: can be dropped if this is in a filter.
>
> Curious: What does $Email Body$ contain? If it is the full email body 
> that could be causing the issue. The $PROCESS$ command tops out at
> 4096 characters long according to the workflow object guide:
>
> The $PROCESS$ tag indicates that all text that follows is a command 
> line. The
>
> command line can include substitution parameters from the current 
> screen to
>
> enable values to be placed into the command line before it is 
> executed. You can
>
> enter as many as 255 characters for your command definition. The 
> command can
>
> be as many as 4096 characters after the substitution parameters are 
> expanded
>
> --- J.T. Shyman
>
> ----------------------------------------------------------------------
> --
>
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *LJ Longwing
> *Sent:* Thursday, December 11, 2008 10:40 AM
> *To:* arslist@ARSLIST.ORG
> *Subject:* Re: set fields by process error
>
> That would only work if the process was running via Active 
> Link...which Anne didn't specify
>
> ----------------------------------------------------------------------
> --
>
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *J.T. Shyman
> *Sent:* Thursday, December 11, 2008 9:00 AM
> *To:* arslist@ARSLIST.ORG
> *Subject:* Re: set fields by process error
>
> **
>
> Try changing the command to:
>
> $PROCESS$ @@:echo ""$Email Body"" |
> /home/aramey/html2text-0.003/html2text.pl
>
> If that doesn't work, start with something simple and work up from 
> there. Change the set fields to something like
>
> $PROCESS$ @@:echo $HOSTNAME
>
> And see if that sets the field. If it does try
>
> $PROCESS$ @@:echo ""$Request ID""
>
> (or some other, short field)
>
> If that works, it may not be liking fact that the return has multiple 
> lines. It may see that as multiple values and not a single value for 
> the set fields.
>
> --- J.T. Shyman
>
> ----------------------------------------------------------------------
> --
>
> *From:* Action Request System discussion list(ARSList) 
> [mailto:arsl...@arslist.org] *On Behalf Of *Ramey, Anne
> *Sent:* Thursday, December 11, 2008 9:45 AM
> *To:* arslist@ARSLIST.ORG
> *Subject:* set fields by process error
>
> I am getting an exit code: 127 set fields action error when trying to 
> use the following in a set fields action to strip HTML from an email body:
>
> $PROCESS$ "echo ""$Email Body$"" |
> /home/aramey/html2text-0.003/html2text.pl "
>
> The process works fine when I run it from the command line:
>
> btw, it does work from the command line:
>
> r...@ncc db# echo "<h2>Test header</h2><br>test<br>
>
> > Anne Ramey
>
> > test" | /home/aramey/html2text-0.003/html2text.pl
>
> Starting /home/aramey/html2text-0.003/html2text.pl ...
>
> Test header
>
> ===========
>
> test
>
> Anne Ramey test
>
> Anyone know what exit code 127 means? or see any syntax errors? I 
> can't find the set field error exit codes anywhere in the documentation.
>
> AR System 7.0.1 Patch 5, ITSM 7.0.03 patch 7 on Red Hat Linux. Oracle 
> backend.
>
> Thanks,
>
> Anne Ramey
> ***********************************
>
> */E-mail correspondence to and from this address may be subject to the 
> North Carolina Public Records Law and may be disclosed to third 
> parties only by an authorized State Official./*
>
> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" 
> html___ __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the 
> Answers Are" html___
>
> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" 
> html___ __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the 
> Answers Are" html___
>
> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" 
> html___
>
> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" 
> html___ __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the 
> Answers Are" html___


-- 
----------------------------------------------------------------------------
------
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- und
Geschaeftsgeheimnisse, dem Anwaltsgeheimnisunterliegende oder sonstige
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich
erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte
benachrichtigen Sie uns in diesem Falle sofort durch Antwort-Mail und
loschen Sie diese E-Mail nebst etwaigen Anlagen aus Ihrem System. Ebenso
duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte
weitergeben. Vielen Dank!

MFG
dimitri
----------------------------------------------------------------------------
------

____________________________________________________________________________
___
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