On Friday 14 Jan 2011 09:41:34 shawn wilson wrote: > On Jan 14, 2011 4:33 AM, "Adrian Levi" <[email protected]> wrote: > > I have the following bash script and it fails at line 14 and 15 > > (7zparameters= and 7zfilename=) I have tried everything i can think of > > to get it to work, the answer has to be simple but i can't figure it.
It would be helpful if questions like this tell us how it fails. I assume there's an error message? <SNIP> > > 7zparameters='a -si -mhe=on -ppassword -t7z -m0=lzma -mx=9 -mfb=64 > > -md=32m -ms=on -l' > > 7zfilename='Daily backup - `date +%a" "%h" "%H%M" > > Check your quotes. There might be other things but it looks like you're > missing a tick after date. Also a decent IDE would make this pretty plain > to you - I use vim. That looks like the culprit. If fixing that doesn't solve the problem run the script with "sh -x". That will show up a lot of errors in a script. Neil Youngman -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

