Re: redirect command output

Josip Deanovic via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <3775826.gA8l2dykhM@brutus>
On Saturday, December 28, 2024 3:17:20 PM CET Mailing_List via Bacula-users 
wrote:
> Le vendredi 27 décembre 2024 à 20:59 +0100, Josip Deanovic via Bacula-
> 
> users a écrit :
> > Could you try something like this:
> > 
> > Command = "/usr/bin/bash -c '/usr/local/perso/suspend-gest.sh add
> > bacula > /
> > dev/null'"
> 
> Works !
> 
> 28-déc. 10:14 coffee-dir JobId 18512: shell command: run BeforeJob
> "bash -c '/usr/local/perso/suspend-gest.sh add bacula > /dev/null'"
> 28-déc. 10:14 coffee-dir JobId 18512: Start Backup JobId 18512,
> Job=BackupCoffee.2024-12-28_10.14.35_03
> 
> Thank you !

Glad to hear it worked for you.


Regards

-- 
Josip Deanovic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.