On 22/11/13 23:15, Sharon Kimble wrote: > On Fri, 22 Nov 2013 09:09:23 +1100 > Scott Ferguson <scott.ferguson.debian.u...@gmail.com> wrote: > >> On 22/11/13 08:50, Scott Ferguson wrote: >>> On 22/11/13 06:39, Scott Ferguson wrote: >> <snipped> >>> >>> Try #2 :/ >> >> Try #3 (no sleep last night - trees and power lines down across the >> property in last nights storms) Sorry. >> This time I remembered to escape those brackets. Please test this - I >> can only check the script works, can't check if mmaker likes it. >>
<snipped> > Thanks for this, I hope you slept better? This is what I currently > have - > > #!/bin/bash > # .fmenu > mv ~/.fluxbox/menu{,-$(date +%Y%m%d-%R)} > > mmaker fluxbox -f > > sed -i 's/\[end]//g' ~/.fluxbox/menu;sed -i '/^\s*$/d' ~/.fluxbox/menu > > printf '\t[submenu] \(My > Menu\)\n\t[include]\(~/.fluxbox/usermenu\)\n\t[end]\n\t[separator]' >>> ~/.fluxbox/menu" >~/.fmenu > > and the double sed line works okay, but its failing at the 'printf' > line saying - > 'tryitout > /home/boudiccas/bin/tryitout: line 21: /home/boudiccas/.fluxbox/menu > >> ~/.fmenu' > > NB - my working script is always called 'tryitout', just whilst I'm > developing something. I know nothing of 'tryitout', neither does the script (~/.fmenu) :) That is why fprint fails. Edit ~/bin/tryitout so it contains:- #!/bin/bash # ~/bin/tryitout mv ~/.fluxbox/menu{,-$(date +%Y%m%d-%R)} mmaker fluxbox -f printf "\t[submenu] \(My Menu\)\n\t[include]\(~/.fluxbox/usermenu\)\n\t[end]\n\t[separator] <snipped> Kind regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52902e04.8080...@gmail.com