My intent is to check for TCP and UDP being opened by a specific process.
lsof -p $1 | grep -E "TCP|UDP"
(this works well on Mac OS)
I installed lsof binary on a jailbroken iPad, from cydia. When i execute lsof on iOS device (terminal), it just gives me errors saying: information error: Cannot allocate memory
I tried compiling lsof for iOS (arm) from various sources but the make fails.
Also tried to install .deb on the iPad, using dpkg -i
but it gave errors saying that ruby and other dependencies are not found.
Would be great if I could get help in getting lsof to function properly on iOS. Or a working alternative for lsof. Thanks.
I copy the file from my old device and upload it to GitHub here.
I encounter the same problem. I solved it by this:
chmod +x lsof
Reference:
http://modmyi.com/forums/native-iphone-ipod-touch-app-discussion/721184-lsof-problem.html