[rt-users] Passing date variables as dates from the CLI
Thomas Sibley
trs at bestpractical.com
Thu Jan 27 22:59:01 EST 2011
On 27 Jan 2011 22:36, Chris Herrmann wrote:
> Actually, the problem is more with variables fullstop...
>
> faredge at sirius:~$ rtqueryqueue=myrtqueue;export rtqueryqueue
> faredge at sirius:~$ rt
> rt> list "queue = '$rtqueryqueue'"
> Query:queue = '$rtqueryqueue'
> No matches found
> rt>
>
> If I run this by typing the queue name into the cli, it works OK.
>
> So... then I guess the question becomes how do I correctly pass environment variables into the RT CLI so that they're substituted correctly?
You don't. bin/rt doesn't do variable substitution. If you need to use
environment variables then you need to do it without dropping into
bin/rt's shell.
Thomas
More information about the rt-users
mailing list