Lsof gives "informational error: cannot allocate memory" in iOS

My intention is to verify that TCP and UDP are open by a specific process.

lsof -p $1 | grep -E "TCP|UDP" lsof -p $1 | grep -E "TCP|UDP" (this works well on Mac OS)

I installed lsof binary on iPad jailbroken , from cydia. When I execute lsof on an 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 make does not work.

Also tried to install . deb on the iPad using dpkg -i , but it gave errors saying that rubies and other dependencies were not found.

It would be great if I could get help in working fine in iOS. Or a working alternative for lsof. Thanks.

+7
ios out-of-memory jailbreak runtime-error lsof
source share
1 answer

Update

I copy the file from my old device and upload it to GitHub here .


I am facing the same problem. I solved it as follows:

  • Download lsof-arm7-iOS4.2 .
  • Backup old lsof to lsof-backup.
  • Copy the downloaded lsof-arm7-iOS4.2 into iDevice.
  • Rename lsof-arm7-iOS4.2 to lsof
  • Then chmod +x lsof

Link:

http://modmyi.com/forums/native-iphone-ipod-touch-app-discussion/721184-lsof-problem.html

+7
source share

All Articles