Hi Torsten,
this has been discussed a while back:
http://lists.fsck.com/pipermail/rt-devel/2006-May/008448.html
- Dmitri.
Ham MI-ID, Torsten Brumm wrote:
Hi RT Users,
again a question/problem with RT CLI, again mulitple lines. I’m trying
to create a ticket in interactive mode (-e) with more then one line of text.
I’m using this: /opt/rt3/bin/rt create -t ticket -e set subject='TEST
30.5.2007 from CLI' and this brings me to the Editor:
# Required: id, Queue
id: ticket/new
Queue: General
Requestor: root
Subject: TEST 30.5.2007 from CLI
Cc: [EMAIL PROTECTED]
AdminCc:
Owner: root
Status: new
Priority: 50
InitialPriority: 20
FinalPriority: 90
TimeEstimated:
Starts: 2007-05-30 08:05:29
Due: 2007-05-31 08:05:29
Text: ONE LINE
In this case, with one line it works well, but if I try to set another
line (CR/LF) it brings this:
# Please resubmit with errors corrected.
--
# Syntax error.
id: ticket/new
Queue: General
Requestor: root
Subject: TEST2 30.5.2007 from CLI
Cc:
AdminCc:
Owner:
Status: new
Priority:
InitialPriority:
FinalPriority:
TimeEstimated:
Starts: 2007-05-30 08:08:12
Due: 2007-05-30 08:08:12
Text: LINE 1 and RETURN after
> Line2
Line3
I have checked the rt cli tool for this hint from Philip klime I think:
--- bin/rt 2006-09-28 08:53:43.000000000 -0400
+++ /opt/rt3/bin/rt 2006-09-25 10:48:09.000000000 -0400
@@ -388,7 +388,7 @@
elsif (/^set$/i) {
my $vars = 0;
- while (@ARGV && $ARGV[0] =~ /^($field)([+-]?=)(.*)$/xms) {
+ while (@ARGV && $ARGV[0] =~ /^($field)([+-]?=)(.*)$/) {
my ($key, $op, $val) = ($1, $2, $3);
my $hash = ($op eq '=') ? \%set : ($op =~ /^\+/) ?
\%add : \%del;
The line looks correct.
Any ideas? How do you use the RT CLI with more then one line of text? Do
I something wrong?
Thanks
Torsten
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com