[rt-users] how to run new rt cli in cron

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Sat May 2 17:47:56 EDT 2009


What's the specific problem with putting a password in a crontab or a shell
script that cron calls?  Only folks with root access could see the
password.  Besides, you've got to put the RT database password in plain
text in your RT_SiteConfig file, unless you are running without a password,
which is even worse...

I haven't used the CLI, but if it's truly interactive, you'll need to write
an expect script.

BTW, it appears you didn't catch my email with specific instructions for
creating a Logo file...


James Moseley



Asif Iqbal <vadud3 at gmail.com> wrote:

The rt cli from 2001 does not require a password to get the content of a
ticket. So running it as part of a cron is not a problem

To get the content of a ticket with rt cli from rt-3.8.2 I need to run rt
show <ticket number>, but it requires a password.
So I need to run it interactively. Plus I am not comfortable to feed a
password in cronjob.

How do I by pass the password prompt? Is there another user I can use
instead where I don't have to feed a password thru cronjob?





More information about the rt-users mailing list