rickwookie;416123 Wrote: > Changing #!/bin/sh to #!/bin/bash makes stuff between [[ ]] work, and > since bc (and dc and concalc] doesn't seem to be installed by default > on Ubuntu (though they're in the repository) and since this is only > integer calculations, $(($VarA+$VarB)) will do. Lastly, 'if [[ > "$localOffsetStr" =~ "\+" ]]' is always false, so I lost the '\' to > make it work for us Europeans. ;-) > > Since I knew nothing about Linux shell scripting before today, that > took quite a bit of guess work and googling. > > Now, if only I could get Ubuntu to WOL from S3 more than once per > reboot... Re S3 more than once per reboot: what hardware are you using?
Re guess work and googling: Congratulations: you now know as much, if not more, about shell scripting as do I (as should be obvious from my ham-handed script code.) Re making it work for Europeans: I don't understand about the "\+" though. Why is that always false? Is that a wrongly expressed / escaped regex? Doesn't the "+" need to be escaped in order to be interpreted properly? -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=62339 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
