Re: [rt-users] RT CLI and multiple lines
Hi Dmitri, Hi Jim, thanks for your help, got it working now. Torsten 2007/6/1, Torsten Brumm <[EMAIL PROTECTED]>: Hi Dmitri, the hint with the whitspace was success for the interactiv editor, thanks.. 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. Its ok for me for the interactive editor. Thanks 2007/5/30, Dmitri Tikhonov <[EMAIL PROTECTED]>: > > 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.0 -0400 > > > >> +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.0 -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 > -- MFG Torsten Brumm http://www.torsten-brumm.de -- MFG Torsten Brumm http://www.torsten-brumm.de ___ 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
Re: [rt-users] RT CLI and multiple lines
Hi Dmitri, the hint with the whitspace was success for the interactiv editor, thanks.. 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. Its ok for me for the interactive editor. Thanks 2007/5/30, Dmitri Tikhonov <[EMAIL PROTECTED]>: 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.0 -0400 > >> +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.0 -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 -- MFG Torsten Brumm http://www.torsten-brumm.de ___ 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
Re: [rt-users] RT CLI and multiple lines
I think the confusion is the two modes. The link I originally sent: http://lists.bestpractical.com/pipermail/rt-devel/2006-September/008882.html is a fix for multiple lines provided on the command-line without invoking an editor. The item in the post below addresses multiple lines when using the editor (the -e). In that case, you just need to indent the lines after the first. Jim Dmitri Tikhonov wrote: 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.0 -0400 +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.0 -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 -- Jim Brandt Administrative Computing Services University at Buffalo ___ 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
Re: [rt-users] RT CLI and multiple lines
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.0 -0400 +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.0 -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
[rt-users] RT CLI and multiple lines
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.0 -0400 > +++ /opt/rt3/bin/rt 2006-09-25 10:48:09.0 -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