I want to do this through an Ant build script:
$ /bin/sh $ cd /path/to/executable $ ./executable.sh
This is what I tried but I think it only ex
Only the first arg after the -c is run by the shell, hence the behaviour you see. Just put the two commands into one arg, separated by a semicolon:
-c