On 27 Jan 2011 22:36, Chris Herrmann wrote: > Actually, the problem is more with variables fullstop... > > faredge@sirius:~$ rtqueryqueue=myrtqueue;export rtqueryqueue > faredge@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
