Hi Jim,
We recently had an application that required us to import data containing
newlines into our RT instance via the command-line tool. We found that the text
field of the 'create' option does not accept newlines, however adding an actual
newline character to a 'comment' does:
[EMAIL PROTECTED] ~]# /opt/rt3/bin/rt comment -m 'foo
bar' 40849
Password:
Message recorded
[EMAIL PROTECTED] ~]# echo $?
0
Sincerely,
Frank Pater
DCANet
http://www.dca.net
voice: 888-4-DCANET (888-432-2638)
fax: 302-426-6386
On Thu, Aug 31, 2006 at 12:07:00PM -0400, Jim Brandt wrote:
Is there any way to pass in a new line character via the CLI? I'm trying
to put one in the text field with 'create' and straight in with a 'comment'.
An actual return confuses the shell, and everything else I tried is
translated literally. \n and br / both just showed up that way in the
ticket. (It's actually very cool that RT is translating everything
properly, but I'd like a control character to tell RT that I really want
a newline.)
Thanks,
Jim
--
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
pgpwFzwDaDgWy.pgp
Description: PGP signature
___
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