Hi Dmitri,<br><br>the hint with the whitspace was success for the interactiv editor, thanks..<br><br>its funny, i thought a normal cr/lf is enough for a whitespace, but its not working, but if i use cr/lf + space its working.
<br><br>Its ok for me for the interactive editor.<br><br>Thanks<br><br><div><span class="gmail_quote">2007/5/30, Dmitri Tikhonov <<a href="mailto:dtikhonov@vonage.com">dtikhonov@vonage.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Torsten,<br><br>this has been discussed a while back:<br><br><a href="http://lists.fsck.com/pipermail/rt-devel/2006-May/008448.html">http://lists.fsck.com/pipermail/rt-devel/2006-May/008448.html</a><br><br> - Dmitri.
<br><br>Ham MI-ID, Torsten Brumm wrote:<br>> Hi RT Users,<br>><br>> again a question/problem with RT CLI, again mulitple lines. I'm trying<br>> to create a ticket in interactive mode (-e) with more then one line of text.
<br>><br>><br>><br>> I'm using this: /opt/rt3/bin/rt create -t ticket -e set subject='TEST<br>> 30.5.2007 from CLI' and this brings me to the Editor:<br>><br>><br>><br>> # Required: id, Queue
<br>><br>><br>><br>> id: ticket/new<br>><br>> Queue: General<br>><br>> Requestor: root<br>><br>> Subject: TEST 30.5.2007 from CLI<br>><br>> Cc: <a href="mailto:torsten.brumm@kuehne-nagel.com">
torsten.brumm@kuehne-nagel.com</a><br>><br>> AdminCc:<br>><br>> Owner: root<br>><br>> Status: new<br>><br>> Priority: 50<br>><br>> InitialPriority: 20<br>><br>> FinalPriority: 90<br>>
<br>> TimeEstimated:<br>><br>> Starts: 2007-05-30 08:05:29<br>><br>> Due: 2007-05-31 08:05:29<br>><br>> Text: ONE LINE<br>><br>><br>><br>> In this case, with one line it works well, but if I try to set another
<br>> line (CR/LF) it brings this:<br>><br>><br>><br>> # Please resubmit with errors corrected.<br>><br>><br>><br>> --<br>><br>><br>><br>> # Syntax error.<br>><br>><br>><br>
> id: ticket/new<br>><br>> Queue: General<br>><br>> Requestor: root<br>><br>> Subject: TEST2 30.5.2007 from CLI<br>><br>> Cc:<br>><br>> AdminCc:<br>><br>> Owner:<br>><br>> Status: new
<br>><br>> Priority:<br>><br>> InitialPriority:<br>><br>> FinalPriority:<br>><br>> TimeEstimated:<br>><br>> Starts: 2007-05-30 08:08:12<br>><br>> Due: 2007-05-30 08:08:12<br>><br>> Text: LINE 1 and RETURN after
<br>><br>>> > Line2<br>><br>> Line3<br>><br>><br>><br>> I have checked the rt cli tool for this hint from Philip klime I think:<br>><br>><br>><br>>> --- bin/rt 2006-09-28 08:53:
43.000000000 -0400<br>><br>>> +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.000000000 -0400<br>><br>>> @@ -388,7 +388,7 @@<br>><br>>> elsif (/^set$/i) {<br>><br>>> my $vars = 0;
<br>><br>>><br>><br>>> - while (@ARGV && $ARGV[0] =~ /^($field)([+-]?=)(.*)$/xms) {<br>><br>>> + while (@ARGV && $ARGV[0] =~ /^($field)([+-]?=)(.*)$/) {<br>
><br>>> my ($key, $op, $val) = ($1, $2, $3);<br>><br>>> my $hash = ($op eq '=') ? \%set : ($op =~ /^\+/) ?<br>><br>>> \%add : \%del;<br>><br>><br>
><br>> The line looks correct.<br>><br>><br>><br>> Any ideas? How do you use the RT CLI with more then one line of text? Do<br>> I something wrong?<br>><br>><br>><br>> Thanks<br>><br>>
<br>><br>> Torsten<br>><br><br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
</a><br><br>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.torsten-brumm.de">http://www.torsten-brumm.de
</a>