English 中文(简体)
Can I get around the launch timeout when running scripts from SpringBoard?
原标题:

I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like MobileTerminal since there is no way to get output, but it has its uses.

It works great for simple scripts, but long scripts get timed out with a "failed to launch in time" error in syslog. Searching led me here where there are discussions about the timeout for launching legitimate iPhone apps.

I assume a script can t communicate to the system that it launched cleanly, but is there any way to get around that timeout with a script?

I am a Linux guy and don t have a Mac or Windows for XCode or enough free time to learn C++, I d just be happy if all my scripts worked, not just the short ones.

问题回答

I think you might have more luck asking on a discussion forum for jail-broken iPhones. At a guess, Springboard is killing your "apps" because they re not starting an event-processing loop. As far as I know, there s no way to do that from a shell script.

Perhaps someone has made a Cocoa Touch app that will execute your scripts for you, while keeping Springboard happy.





相关问题
What does it mean "to write a web service"?

I just asked a question about whether it was possible to write a web-page-checking code and run it from free web server, and one supporter answered and said that it was possible only if I run "a web ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Dynamically building a command in bash

I am construcing a command in bash dynamically. This works fine: COMMAND="java myclass" ${COMMAND} Now I want to dynamically construct a command that redirectes the output: LOG=">> myfile.log ...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I ...

Ivy, ant and start scripts

I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, ...

热门标签