Professional Web Applications Themes

How to Search for running Application - PERL Beginners

Hi All, Is there any way in perl i can search for the running application and its process id using perl. e.g. Let us suppose I know the name of the application as httpd<binary> Can i search in processes whether that application is running and what is its process id My problem is even if some file with name httpd exists It will show you that also which i want to avoid. Please help Thanks, --------------------------------- Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'...

  1. #1

    Default How to Search for running Application

    Hi All,
    Is there any way in perl i can search for the running application and its process id using perl. e.g. Let us suppose I know the name of the application as httpd<binary> Can i search in processes whether that application is running and what is its process id My problem is even if some file with name httpd exists It will show you that also which i want to avoid. Please help

    Thanks,




    ---------------------------------
    Do you Yahoo!?
    Yahoo! Movies - Buy advance tickets for 'Shrek 2'
    Amrahsa Guest

  2. #2

    Default Re: How to Search for running Application


    application and its process id using perl. e.g. Let us suppose I know
    the name of the application as httpd<binary> Can i search in processes
    whether that application is running and what is its process id My
    problem is even if some file with name httpd exists It will show you
    that also which i want to avoid. Please help 

    Generally this is handled best by the application itself generating a
    PID file. For instance if your httpd is Apache it will store a file
    (configurable) to a directory on the local filesystem that will store
    the initial process' PID. Then you don't need to read over the process
    table.

    Having said that, you might want to look at the doentation for
    Proc::ProcessTable, or I know drieux had some rants about this, do a
    google search for his homepage.

    HTH,

    http://danconia.org
    Wiggins Guest

  3. #3

    Default Re: How to Search for running Application

    "Wiggins d Anconia" <org> writes:
     
    > application and its process id using perl. e.g. Let us suppose I know
    > the name of the application as httpd<binary> Can i search in processes
    > whether that application is running and what is its process id My
    > problem is even if some file with name httpd exists It will show you
    > that also which i want to avoid. Please help [/ref]

    [...] maybe missing your point.. But if this is on unix/unixlike OS
    and doesn't demand portablility, you could resort to a system or qx
    call to `ps wwaux' if one of the bsd styles or whatever system V ps
    -??? (not sure what it is)

    But maybe thats not accessable

    Harry Guest

Similar Threads

  1. Running an Application with All Previliges
    By Sammy in forum Windows Vista
    Replies: 1
    Last Post: March 16th, 12:46 PM
  2. Error while running application
    By mkshashi in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: November 28th, 09:30 AM
  3. Warning while running application
    By HKDKunSoo in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: May 26th, 03:30 PM
  4. Search Application Help Please
    By PJ_Metzger in forum Dreamweaver AppDev
    Replies: 1
    Last Post: February 28th, 01:11 AM
  5. Replies: 0
    Last Post: August 4th, 09:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139