BackupPC-users

Re: [BackupPC-users] Pre/PostUserCmd: More than one?

2013-09-17 12:51:05
Subject: Re: [BackupPC-users] Pre/PostUserCmd: More than one?
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 17 Sep 2013 11:49:29 -0500
On Tue, Sep 17, 2013 at 11:35 AM,  <backuppc AT kosowsky DOT org> wrote:
>>  >
>  > Backuppc is going to run the command with exec(), not system() so I
>  > don't think passing a double-quoted string is going to work even if
>  > you execute your own shell to parse it.   Is there some problem with
>  > putting the commands in a shell script file and making that your
>  > command?
>  >

> Well, I perhaps wrongly assumed it work since I know it does work when
> I pass 'bash -c' as part of my ssh command and use double
> quotes... but I recall that it is a bit tricky of when and how to use
> and to escape the different nested quotes...

Actually it should work if you can figure out the right quoting (and
escaping from perl) to get the command passed through to the shell but
that part isn't straightforward.

-- 
   Les Mikesell
     lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/