Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Best way to keep script with generated output

by ikegami (Patriarch)
on Dec 09, 2009 at 17:48 UTC ( #811983=note: print w/replies, xml ) Need Help??


in reply to Re^4: Best way to keep script with generated output
in thread Best way to keep script with generated output

But then you need to hardcode your own name into the file. I specifically avoided doing that. It's your call if that matters to you.
  • Comment on Re^5: Best way to keep script with generated output

Replies are listed 'Best First'.
Re^6: Best way to keep script with generated output
by benizi (Hermit) on Dec 10, 2009 at 04:23 UTC

    I don't follow. What name am I hard-coding? The "/usr/share/X11/locale/$ENV{LANG}/Compose" file is an input to the script. It's not the file being generated (~/.XCompose-ordering). I don't see what else is hard-coded.

      I'm referring to inputfile

        Seems like an odd objection. For this particular task, the input will always be the same -- I just wanted to be able to run it again when that input file might change. If I were writing something where the input would change, I wouldn't have embedded the script. I would have created a script that would process a file or files, and put it somewhere proper (~/bin if something only useful for myself).

        Plus, that would defeat the initial intent of running ~/.XCompose-ordering itself to update it.

        Thanks for the pointers. I like what I ended up with.

      I'm referring to inputfile

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://811983]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2022-10-07 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (29 votes). Check out past polls.

    Notices?