-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
anu schreef:
> I am trying to use runtime exec within an emulator shell for ANDROID.
> The normal commands (such as logcat -c and ls) work. However, if I
> type logcat -d -f <filepath> the file is created but nothing is piped
> into it. If I type logcat -d > <filepath> even the file is not
> created. Please let me know if this is an issue with runtime exec.
The latter is: pipes and redirections are a thing of the shell.
Runtime.exec does *not* invoke a shell. So things like | and > do not
work. The first syntax should work, however. How about an SSCCE?
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE -
http://enigmail.mozdev.org
iEYEARECAAYFAkjFMpMACgkQBGFP0CTku6OC2ACgwh/yjn/WpVDULLSDuGrQOiqN
zSAAnRyaUA5TCbIbWpX2gFBB6iXDi2pD
=y2PM
-----END PGP SIGNATURE-----