Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Korn Shell Wrappers for Perl Module Functions?

by Malkavian (Friar)
on Jul 10, 2001 at 21:34 UTC ( [id://95375]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Korn Shell Wrappers for Perl Module Functions?
in thread Korn Shell Wrappers for Perl Module Functions?

Environment vars will only be seen if you pipe them to the script, as you've done in your link.
However, if you set them on a line by line basis in a shell script they won't be visible.

Malk.
  • Comment on Re: Re: Re: Korn Shell Wrappers for Perl Module Functions?

Replies are listed 'Best First'.
Re: Re: Re: Re: Korn Shell Wrappers for Perl Module Functions?
by Anonymous Monk on Jul 10, 2001 at 21:45 UTC
    If you are on a linux box, try 'ps e'! On other systems I don't know the parameter. Your other point would be deserved, if we wouldn't talk about ksh (or bash for that matter). Echo is an internal command and will not be shown as a separate process, but as fork of the ksh. No params to see here, please go away;-)
      Yep, 'ps e' shows loads of parameters. All those in the shell .rc file, and sundry that are also put in at various stages by anything else the shell uses.
      Now, however, unless someone is willing to pull out all the set env variables by this method, and get the relevant spam, just to catch out this guy, then it's all but invisible.
      If it's a case of this is too visible for the poster, then, so be it, I just feel that it's 'within reasonable bounds' of not being visible to ps, and all the commonly used forms.

      Malk
        Security through obscurity is always fatal.
        A reply falls below the community's threshold of quality. You may see it by logging in.
      'ps e' only shows the environment for your own processes, if someone untrustworthy is running ps with your uid you've got bigger problems than whether he can parse the output and find some variables in it.
        Absolutely.
        Time to put this thread to bed I think.. I misread your posting slightly about the ps showing through with the e arg to it.
        End of day here (UK) makes me a little less likely to read the fine print, so you have my apoligies for getting the wrong end of the stick about what you were trying to say.
        The point I had in my mind was that the echoing was invisible to anything I had, and I got the line about the env showing up in ps from that echo you wrote.
        From there on, I guess I fixed in a more narrow minded view on what you'd said.
        Apologies for that
        It looks like we were both trying to say the same thing, with me not being quite so clear about it. :)
        Hopefully I've not caused offense
        The point of view I have with ps e is also coloured by the fact that where I work, there are several user IDs that have generic access to a great many people (for legacy reasons that grew up with it being a volunteer effort for about 7 years before it went commercial), thus many people would be able to see.
        Next time, feel free to tell me to wake up or something.:)

        Cheers,

        Malk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found