Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Finding out by one process a filename opened by another process.

by humble (Acolyte)
on Aug 01, 2012 at 15:46 UTC ( #984819=note: print w/ replies, xml ) Need Help??


in reply to Re: Finding out by one process a filename opened by another process.
in thread Finding out by one process a filename opened by another process.

Here (w/ my question) I pursue 2 goals:

1. move part of my code written in BASH to PERL

2. avoid "wide characters".

Therefore:

1. I'm lookign for PERL technique - how to implement this in PERL. I have done that already using BASH or OS tools, though.

2. I'm boring w/ wide characters problem - it just makes me seek. - The more I try to go PERL way, the more problems I get - that seems to me unresolvable. F.e.: trying to fix it PERL way - I have to module Encode w/ its functions en/de -code - the great and unresolvable problem here is that I have to guess right encoding - and no automation - of course on a batch processing script like mine - it is hardly implemetable solution. - At other hand, using BASH/OS tools incapsulations to my PERL code, blesses me w/ no such a problem - a work around have been found in opening /proc/PID/cmdline - that has the filename and its path in purity - allowing me to access the file farther by PERL code.

So, having said that, I'm wondering if it is the way to go? Or there some techniques that I'm not aware of, and I can use PERL for my situation?


Comment on Re^2: Finding out by one process a filename opened by another process.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-08-30 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls