I m in a process of automating Sudo test plan, where i need to invoke another shell within a shell automatically, then need to append a line into that script in sub-shell, then save it and quit from it..all automatically.
I m able to do evrything but not able to automate the process of saving and quiting from the sub-shell.
Is there any way to automate the "SAVE AND QUIT" [ :wq! ] process.?