Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Character Palette [Some OT]




This one I figured out. You have to exec a "ps -awwx" (Yes, you have to use w twice.) and look for the command:


Or ps -aux? Can you run a shell script? Then you could pipe the stuff through grep and get back only the process you're looking for or nothing if not there. Still pretty skanky but it is sort of OS specific runtime stuff.
I'm trying to figure out how to do something similar from a shell script at the moment. I want to get the pid for 'snort' to kill it when I stop ppp dialup. Something is hanging up ppp on disconnecting sometimes and snort is my current suspect since it's a recent addition to things I'm playing with. I'd like to stop it when my ip- down script runs. I run that to manage the ipfw firewall stuff myself.
Completely off-topic but I notice in in the ipfw firewall logging that at times I'm getting a lot of 'accepts' on connections coming from port 80 and trying to connect to ports in the 49### range. Google didn't turn up anything seeming real connected. I tried running my java port scanner from "Java Network Programming" to see if I actually have any ports in that range but that ended up knocking down ppp (which hung up on disconnecting taking me back to square one). Judging from console messages maybe it was pumping through too many connection requests too fast and then ppp just decided to take a nap. (nmap did run but showed no 'interesting' ports in the 49K range).
Any ideas on what these mysterious 80->49K connections are that my firewall is currently accepting?


Mike Hall        mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Character Palette (From: Elliotte Harold <email@hidden>)
 >Re: Character Palette (From: Ian Cheyne <email@hidden>)
 >Re: Character Palette (From: Elliotte Harold <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.