Automating ICM Event & Monitor Handlers

The ICM Event Monitor and Handler can be used for a variety of tasks from automatically creating workitems in FileNet to generating email notifications when new documents are added to the repository.

However these tasks are manually trigger from the command line and do not have a password switch making an automated restart tricky.

Well here is a little gem that I hope helps someone else. Batch file are read from right to left meaning the following line would execute as:

  1. Start Event Handler
  2. Prompt for password
  3. Echo passes password to the prompt
  4. Task starts automatically

echo ‘password’  | ICMEvent.sh -d ‘database’ -u ‘user’

I believe this also works on UNIX in shell scripts.

Advertisement
Explore posts in the same categories: Uncategorized

Tags: , ,

You can comment below, or link to this permanent URL from your own site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

Join 200 other followers