| View previous topic :: View next topic |
| Author |
Message |
rec91402
Joined: 14 Nov 2009 Posts: 32
|
Posted: Sun Feb 28, 2010 1:17 am Post subject: <on-disconnect> and CLI options |
|
|
I am trying to use the <on-disconnect> option to send out an email when a feed disconnects... I have a bash script which works great... for that one feed...
I would rather have a generic script that I pass some vars on the CLI to specify feed and email address..
If I use:
<on-disconnect>/usr/local/etc/feeddown.sh</on-disconnect>
That works great, but I have to code in the email and feed name etc. into the script..
<on-disconnect>/usr/local/etc/feeddown.sh feedname mail@domain.invalid</on-disconnect>
That does not work, but the script which has this works fine when called direct from the CLI...
So IC2 can not pass var(s) to the script?
BASH shell on CentOS 5.4
permissions are set correct for the user and group that IC2 runs under |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 28, 2010 1:58 am Post subject: |
|
|
The script is passed the mountpoint as an argument, no other arguments are passed currently.
karl. |
|
| Back to top |
|
 |
|