1

how to run .dump command in linux?

view story
linux-howto

http://unix.stackexchange.com – I want to create dump file of sqlite database from java but I can't run the below command from linux. I got the help of windows and I tried with linux but it appears one terminal nothing more than that. So can anyone help me how to write this command in linux? Process p = Runtime.getRuntime().exec("cmd /c start /b sqlite3 db.sqlite .dump > dump.txt"); My implementation in Linux is below: String command= "/usr/bin/xterm"; Runtime rt = Runtime.getRuntime(); Process p = rt.exec(new String[]{command , "/home/ubuntu/test.sqlite .dump > /home/ubuntu/newsql111.sql"}); Can anyone tell (HowTos)