How to find a string inside a running process

Posted on 2007-10-07
Last Modified: 2013-12-16

I need to search for a string in a running process on my Linux box. Is there any command that can I use to do it?

Question by:david-marti
    LVL 84

    Expert Comment

    find /proc | xargs grep string

    Author Comment

    Don't work. I need to search this string "inside" de process memory, not on /proc.

    LVL 6

    Accepted Solution

    That is a bit of a challenge as one process cannot see memory outside his own. If you put together a system level module to run, it still couldn't see 'user' memory easily because users are paged.

    What is it you need to do? Perhaps there can be a slight design change that could solve your problem.

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now