Creating scrips with rtadmin

Hi,

I’m using rt2.06 and I’d like to use rtadmin to create new queues in a
uniform way (ie create a script make-queue.sh or something). I can create
the queue, but when I try the command:

/opt/rt2/bin/rtadmin --queue rt-test --create-scrip --condition OnCreate
–action NotifyOwner --template Autoreply

I get the output: Action not found
The scrip in the example is a bit silly, but I’ve tried several things.
I also tried to replace the action argument with a number, which also
failed.
Any suggestions?

Marius Olsthoorn

This bug was fixed in 2.0.9On Thu, Nov 29, 2001 at 02:29:19PM +0100, marius@kern.nl wrote:

Hi,

I’m using rt2.06 and I’d like to use rtadmin to create new queues in a
uniform way (ie create a script make-queue.sh or something). I can create
the queue, but when I try the command:

/opt/rt2/bin/rtadmin --queue rt-test --create-scrip --condition OnCreate
–action NotifyOwner --template Autoreply

I get the output: Action not found
The scrip in the example is a bit silly, but I’ve tried several things.
I also tried to replace the action argument with a number, which also
failed.
Any suggestions?

Marius Olsthoorn


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.

I think the --help is wrong.
I just finished working on the docs for the rt tool, rtadmin is next :slight_smile:

Anyway, replace --condition with --scrip-condition, --action with --scrip-action, and --template with --scrip-template.

Also, if you have untrusted shell users, you should upgrade to at least rt-2.0.8_02, as a vulnerabillity in the rtadmin tool exists in earlier versions.
Refer to rt-announce archives for details.

Regards,
-Feargal.On Thu, 29 Nov 2001 14:29:19 +0100 (CET), marius@kern.nl wrote:

Hi,

I’m using rt2.06 and I’d like to use rtadmin to create new queues in a
uniform way (ie create a script make-queue.sh or something). I can create
the queue, but when I try the command:

/opt/rt2/bin/rtadmin --queue rt-test --create-scrip --condition OnCreate
–action NotifyOwner --template Autoreply

I get the output: Action not found
The scrip in the example is a bit silly, but I’ve tried several things.
I also tried to replace the action argument with a number, which also
failed.
Any suggestions?

Marius Olsthoorn


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Feargal Reilly, | Communications House,
Systems Administrator. | 1a Lower Pembroke Street,
The CIA - http://www.thecia.ie/ | Dublin 2,
Ph: +353-1-6768230 Fax: +353-1-6767720 | Ireland.

I think the --help is wrong.
I just finished working on the docs for the rt tool, rtadmin is next :slight_smile:

Anyway, replace --condition with --scrip-condition, --action with --scrip-action, and --template with --scrip-template.

Also, if you have untrusted shell users, you should upgrade to at least rt-2.0.8_02, as a vulnerabillity in the rtadmin tool exists in earlier versions.
Refer to rt-announce archives for details.

Regards,
-Feargal.On Thu, 29 Nov 2001 14:29:19 +0100 (CET), marius@kern.nl wrote:

Hi,

I’m using rt2.06 and I’d like to use rtadmin to create new queues in a
uniform way (ie create a script make-queue.sh or something). I can create
the queue, but when I try the command:

/opt/rt2/bin/rtadmin --queue rt-test --create-scrip --condition OnCreate
–action NotifyOwner --template Autoreply

I get the output: Action not found
The scrip in the example is a bit silly, but I’ve tried several things.
I also tried to replace the action argument with a number, which also
failed.
Any suggestions?

Marius Olsthoorn


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Feargal Reilly, | Communications House,
Systems Administrator. | 1a Lower Pembroke Street,
The CIA - http://www.thecia.ie/ | Dublin 2,
Ph: +353-1-6768230 Fax: +353-1-6767720 | Ireland.