Kill Command for a jailbroken iPhone(iOS X) [duplicate]



<strong>Possible Duplicate:</strong><br /><a href="https://stackoverflow.com/questions/8963640/kill-command-for-a-jailbroken-iphone" rel="nofollow">Kill Command for a jailbroken iPhone</a>


Hey I am looking for a kill command that lets my app kill other apps while my app is running in the background. I am building my app on a jailbroken iPhone so I am looking for one that will work with the iOS X platform. Any help you can give me would be greatly appreciated. Thank You, rytime


There is killall, which will kill an application by it's binary's name, or there is kill which will kill by a process ID. Are either of those what you want?

Example usage:

NSString *exec = [NSString stringWithFormat:@"killall %@", executableName]; system([exec UTF8String]); <hr />NSString *exec = [NSString stringWithFormat:@"kill %i", processId]; system([exec UTF8String]);


If your app isn't made especially for that purpose then you shouldn't do this without the user knowing it. You can either use "killall executableName" in a system() command or if you are developing for MobileSubstrate then you could hook some SpringBoard classes and close the SBApplication/remove the SBApplicationIcon from the switcher which will also close the corresponding SBApplication.


  • how to kill firefox gracefully from command line
  • Focusing App with activateWithOptions - only works if non-miniaturized
  • Suppress system() console output
  • Rails 4 custom 404 causes postgresql connection failure on Heroku
  • Applescript to ping test each client prior to ssh connection
  • How To Delete All Words After X Characters
  • No rows to manipulate in html table created with jQuery csvToTable?
  • FragmentActivity with a Fragment Containing a MapView
  • Consuming a web service with the Netbeans Platform
  • Adding independent aspx/asmx pages into DotNetNuke
  • Efficient algorithm to find additions and removals from 2 collections
  • xtable - background colour of added rows
  • Building Qt project for C++11 standard
  • Facebook iOS SDK Not Calling Completion Handler
  • How to use Windows Media Foundation with UWP without a topology
  • Find group of records that match multiple values
  • Center align outputs in ipython notebook
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • x64 applications using gdi+: what are the consequences on performance?
  • Rails Find when some params will be blank
  • Custom Tabgroup Appcelerator
  • Google Custom Search with transparent background
  • Android fill_parent issue
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Linq Objects Group By & Sum
  • Jenkins: How To Build multiple projects from a TFS repository?
  • Optimizing database types to compact database (SQLite)
  • C# - Serializing and deserializing static member
  • JavaScriptCore crash on iOS9
  • Sending data from AppleScript to FileMaker records
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Comma separated Values
  • How to include full .NET prerequisite for Wix Burn installer
  • Buffer size for converting unsigned long to string
  • Is it possible to post an object from jquery to bottle.py?
  • reshape alternating columns in less time and using less memory
  • How to load view controller without button in storyboard?