[rt-users] RT 3.6.1 CLI--how to pass in a newline
Frank Pater
fpater at dca.net
Thu Aug 31 15:24:56 EDT 2006
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:
[root at support ~]# /opt/rt3/bin/rt comment -m 'foo
> bar' 40849
Password:
Message recorded
[root at support ~]# 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: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060831/ba0f5da3/attachment.sig>
More information about the rt-users
mailing list