Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: extract file name from path

by RichardK (Vicar)
on Sep 11, 2013 at 17:23 UTC ( #1053536=note: print w/ replies, xml ) Need Help??

in reply to extract file name from path

ps will let you return just command names, using 'ps -eo command', if that's all you want. (I guess you should check with the ps man page on your platform, just in case).

Now that you've got less junk to skip, just use splitpath in File::Spec to get the app name, which handles all those irritating special cases ;)

Comment on Re: extract file name from path

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-11-25 15:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (681 votes), past polls