Bacula-users

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

2012-10-31 09:42:00
Subject: Re: [Bacula-users] Use bash/php script on "mailcommand"
From: Andrea Conti <alyf AT alyf DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 31 Oct 2012 14:09:59 +0100
> 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>