[rt-users] RT 3.6.1 CLI--how to pass in a newline

2006-08-31 Thread Jim Brandt


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


Re: [rt-users] RT 3.6.1 CLI--how to pass in a newline

2006-08-31 Thread Frank Pater
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

Re: [rt-users] RT 3.6.1 CLI--how to pass in a newline

2006-08-31 Thread der Mouse
 Is there any way to pass in a new line character via the CLI?  [...]

 An actual return confuses the shell,

This is a shell problem, then, and should be addressed as such.  Every
shell I've used has a way to get a newline into a command argument -
though it's not always easy to find.  Which shell do you use?

/~\ The ASCII   der Mouse
\ / Ribbon Campaign
 X  Against HTML   [EMAIL PROTECTED]
/ \ Email!   7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
___
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