Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
I love how people are so helpful here. I assume you're developing an application for your own used with a Jailbroken iPhone. I'd recommend using system(<insert console command>) or popen(<insert command>, <r/w for read or write>). popen() opens a pipe to the console which you can read or write to like a normal file. Anyway, check those out, they might work out for you
I love how people are so helpful here. I assume you're developing an application for your own used with a Jailbroken iPhone. I'd recommend using system(<insert console command>) or popen(<insert command>, <r/w for read or write>). popen() opens a pipe to the console which you can read or write to like a normal file. Anyway, check those out, they might work out for you
This forum was really founded for assisting the development of App Store applications, which means the focus is on SDK-centric topics. If you feel that the support towards jailbroken development is lacking, perhaps you could start up your own forum elsewhere?
This forum was really founded for assisting the development of App Store applications, which means the focus is on SDK-centric topics. If you feel that the support towards jailbroken development is lacking, perhaps you could start up your own forum elsewhere?
I don't really mind about the support for Jailbroken development, but it isn't terribly helpful to just spout "APPLE WON'T PUT THAT IN THE APP STORE" without giving any input as to how to resolve OP's problem. but you're right, there are a number of forums geared towards open toolchain / jailbroken development, and you'd do better to ask on one of those
I only know about NSTask (not available in the iPhone), or adding a run script as a build phase in Xcode (only runs on building). I already forgot most of BSD / Unix system APIs to run another process, fork() ?, passing into main(...) ?
So why are you upset about me unable to give an answer ? He didn't talk about why he needs the bash script anyway...
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
I love how people are so helpful here. I assume you're developing an application for your own used with a Jailbroken iPhone. I'd recommend using system(<insert console command>) or popen(<insert command>, <r/w for read or write>). popen() opens a pipe to the console which you can read or write to like a normal file. Anyway, check those out, they might work out for you
Thank you for those commands. Can you please give me an example for this, or can you please forward me a link to some useful examples for this.
For example what if i want to write a cp command, what should be the procedure?
Thank you for those commands. Can you please give me an example for this, or can you please forward me a link to some useful examples for this.
For example what if i want to write a cp command, what should be the procedure?
I'm also trying to figure this out. I have a command to reboot the iPhone run at a certain time in my app that works just fine in the simulator but doesn't seem to work on the iPhone itself. Does anyone have any ideas?
Here's the code:
I'm also trying to figure this out. I have a command to reboot the iPhone run at a certain time in my app that works just fine in the simulator but doesn't seem to work on the iPhone itself. Does anyone have any ideas?
Here's the code: