| thrig | kill -0 |
| dhar | :D |
| thrig | err, kill 0, $pid |
| dhar | i dont want to kill it or does signal 0 give me something else interesting |
| thrig | do you know what the 0 signal does? |
| dhar | reading now :) |
| action | CPAN upload: Test-WWW-Selenium-1.12 (+++++) by LUKEC |
| CPAN | upload: Test-WWW-Selenium-1.12 (+++++) by LUKEC |
| dhar | thanks thrig, that's perfect |
| thrig | won't work if a different user cannot signal the process, but otherwise better than many methods folks cook up ps $zany_options $pid | wc -l being one I'm trying to eradicate at work |
| dhar | yeah Im guilty of doing that one before or ps ax| grep $procname | grep -v grep |
| action | revdiablo is fond of ps ax | grep [s]omething -- the brackets are effectively no-ops, but the grep doesn't match itself |
| revdiablo | is fond of ps ax | grep [s]omething -- the brackets are effectively no-ops, but the grep doesn't match itself |
| dhar | clever |
| thrig | there's also pgrep |
| dhar | man pgrep and perldoc -f pgrep turn up nothing for me i havent seen that one |
| thrig | only some OS have the pgrep and pkill commands |
| revdiablo | Yeah, but pgrep is less portable and doesn't give as much info as ps |
| dhar | i guess im not lucky enough on OSX to get it |
| stuuf | ps -f `pgrep blah` |
| revdiablo | stuuf: Still less portable, as dhar is aptly demonstrating =) 'course, there's not much portability when it comes to this kind of thing in general |
| dhar | yeah i wonder how activestate handles that stuff |
| thrig | nope. Hence various modules on CPAN I've yet to touch, as I do process management with cfengine |
| dhar | :) thrig: do you work on clusters? |
| lou_cal | Is it possible for me to use perl to read the memory of a Win32 process and write any text data to a file? |
| dhar | lou_cal: writing a keygen? |
| thrig | not really I only maintain a few hundred systems across a couple of data centers |
| dhar | i c |
| action | CPAN upload: Tie-FlatFile-Array-0.02 by MUMIAW |
| CPAN | upload: Tie-FlatFile-Array-0.02 by MUMIAW |
| lou_cal | dhar: no, I have a poker program that will not let me automatically save what is going on in a hand until the hand is over, thus making it poitless to run odds calculations on the text someone who has done it told me they did it with API calls, but would not tell me which programming language they used, and would not elaborate any more on it |
| dhar | yeah theres a program thats commonly used by crackers to get that stuff the name escapes me ice something or other |