redirecting output of a cmd to a file
Posted
by KK
on Stack Overflow
See other posts from Stack Overflow
or by KK
Published on 2010-03-22T13:33:12Z
Indexed on
2010/03/22
13:41 UTC
Read the original article
Hit count: 318
we are trying to re-direct the output of the list to a file using the below cmd(java) in ubuntu, Pls let us know if this works or not ?
Process p = Runtime.getRuntime().exec("ls -l >/home/blah blah/new.txt")
© Stack Overflow or respective owner