QProcess command entering problem.
- 
Being a noob, I want to know how can i solve this- my code- 
 " QProcess sh;
 sh.start("sh");
 sh.write("cd ~/Documents/Mulstem_v1_0/GF");
 sh.write("gf");
 sh.write("i Aap.gf AapmPun.gf AapsPun.gf AapiPun.gf");
 sh.write("l Pred one (Compl two three) | wf -file=Pun.txt");
 sh.closeWriteChannel();
 sh.waitForFinished();
 sh.close(); "Desired result - 
 "
 :~$ cd ~/Documents/Mulstem_v1_0/GF
 :~/Documents/Mulstem_v1_0/GF$ gfThis is GF version 3.7.1. 
 No recorded changes since RELEASE-3.7.1
 Built on linux/i386 with ghc-7.6, flags: interrupt server c-runtime
 License: see help -license.Languages: 
 -> i Aap.gf AapmPun.gf AapsPun.gf AapiPun.gf
 linking ... OKLanguages: AapiPun AapmPun AapsPun 
 8 msec
 Aap> l Pred one (Compl two three) | wf -file=Pun.txt
 0 msec
 "while what i get is- 
 "
 :~$ cd ~/Documents/Mulstem_v1_0/GF
 :~/Documents/Mulstem_v1_0/GF$ gfThis is GF version 3.7.1. 
 No recorded changes since RELEASE-3.7.1
 Built on linux/i386 with ghc-7.6, flags: interrupt server c-runtime
 License: see help -license.Languages: 
 -> i Aap.gf AapmPun.gf AapsPun.gf AapiPun.gf
 "~It waits after the " i Aap.gf AapmPun.gf AapsPun.gf AapiPun.gf" command.. where it should take a enter and the next command. Is it because terminal state is in interrupt mode? If so, how can i enter commands in that mode? 
 Help?
- 
Hi, Why not put that in a shell script and call that script with QProcess ? 
