mherger;432533 Wrote: > > mherger;432505 Wrote: > >> > But I'd rather > >> > just *know* the full path to my executing code module...which is > >> > something I've never been able to figure out how to figure out in > >> perl. > >> > How does one do this? Sorry to bug you with such a noob perl > >> question. > >> > >> What exactly do you want to find out? From inside a SC plugin or > your > >> > >> helper scripts? > > > > Inside the plugin. The shell script itself doesn't care where it's > > located. > > > > I'd like to add a page handler function to fixup the help pages so > that > > they reference the appropriate paths to the post install script. Or, > if > > I can be clever enough, add a form on the help page that prompts the > > users for his/her system account password and then executes the > script. > > The script has to be executed via sudo since it makes changes to > > /etc/sudoers. > > I still don't understand... why don't you know where your files are? > > You probably better start a new thread in the developers forum and > describe from scratch what you want to do... > > Michael Ok, I'll start a new thread...and maybe I'm missing something painfully obvious. But a plugin can be installed in any of 4 different locations:
SqueezeCenter "manual" or extension downloader install; SBServer manual or ED install. How does my code "know" where it's installed? -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=64535 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
