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

Re: extract file name from path

by RichardK (Parson)
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 ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053536]
help
Chatterbox?
[Discipulus]: welcome WinnieB, good morning marto
[marto]: good morning all
[Corion]: Good morning ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-03-30 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.