On Android can I write scripts (similar to Win .bat files) to combine several command line commands? On Windows, I can run two commands using a .bat file.
How can I achieve the same thing on Android

For example:


update my podcasts by calling pcastclient /updateALL
force sync of my pictures sugarsync /forceupdate
Android's shell will support a limited amount of Unix-style shell scripting. It specifically should have a shell at /system/bin/sh that you can use, however:


The shell provided with Android has a severely restricted set of commands available to it. If you want to do anything even remotely complex you'll need a busybox install (or another shell).
It's generally pretty rare for Android apps to provide any kind of command line interface or binaries. I very much doubt that Sugarsync, for example, allows you to perform a sync from the command line.


If you want a bit of a GUI you may want to look at something like GScript.