Holger Parplies wrote at about 20:49:22 +0200 on Wednesday, October 2, 2013:
 > Hi,
 > 
 > [email protected] wrote on 2013-10-02 14:08:16 -0400 [Re: 
 > [BackupPC-devel] [PATCH] More granular check of pre/post user scripts]:
 > > Davide Brini wrote at about 17:57:22 +0200 on Wednesday, October 2, 2013:
 > >  > [...]
 > >  > 
 > >  > IIUC, a sequence of commands can *not* be given, since a shell is not
 > >  > spawned. [...]
 > > 
 > > Not true -- you can use "bash -c"
 > > $Conf{DumpPreUserCmd} = ['bin/bash', '-c', 'original command', 
 > > '/bin/true'];
 > 
 > shouldn't that be ...
 > 
 >    $Conf{DumpPreUserCmd} = ['/bin/bash', '-c', 'original command || 
 > /bin/true'];
 > 
 Actually, I had meant:
$Conf{DumpPreUserCmd} = ['bin/bash', '-c', 'original command;', '/bin/true'];

but I had accidentally left off the semicolon... that seems neater to
me... but YMMV...

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to