Re: [Bacula-users] Use bash/php script on "mailcommand"

2012-10-31 Thread Andrea Conti
> I want to use a php script that create a ticket or allarm on my monitor system
> 
> I soved it, I need to call /bin/bash with "-c" to start every kind of
> script, otherwise I have an error.

... or you can just make sure that your scripts start with a proper
shebang line. E.g., for a php script, the first line should look like

#! /usr/bin/php

That way the script can be directly exec()ed without the need for a shell.

andrea

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Use bash/php script on "mailcommand"

2012-10-31 Thread Carlo Filippetto
I don't want to use any mail server.
I want to use a php script that create a ticket or allarm on my monitor system

I soved it, I need to call /bin/bash with "-c" to start every kind of
script, otherwise I have an error.

Thank you

---
Carlo






2012/10/30 John Doe :
> From: Carlo Filippetto 
>
>> I need to modify the mailcommand with a script
>> How can I do it?
>
> I am not sure what you mean by "modify the mailcommand"...
> Do you mean to send the mail using a script?
>   mailcommand = "/path/to/script %r %c ..."
> Or do you mean to modify the mailcommand configuration line using a script?
>
> JD
>
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Use bash/php script on "mailcommand"

2012-10-30 Thread John Doe
From: Carlo Filippetto 

> I need to modify the mailcommand with a script
> How can I do it?

I am not sure what you mean by "modify the mailcommand"...
Do you mean to send the mail using a script?
  mailcommand = "/path/to/script %r %c ..."
Or do you mean to modify the mailcommand configuration line using a script?

JD

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Use bash/php script on "mailcommand"

2012-10-30 Thread Carlo Filippetto
Hi all,
I need to modify the mailcommand with a script

How can I do it?

Thank's


---
Carlo

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users