I want implement like this at terminal A, open a new terminal B, run command in B, leave B runing, and back to terminal A, run other command.
I have following script, but not what I expected
#!/bin/bash
konsole -e 'sh -c "./tel"'
echo test
The problem is, echo test
command won't run, until I close terminal B.
terminal A output
"failed to get the current screen resources QXcbConnection: XCB error: 170 (Unknown), sequence: 170, resource id: 90, major code: 146 (Unknown), minor code: 20"
and wait for terminal B close. after I close terminal B, terminal A output "test".
Is there a way to solve the problem?
sh -c "./tel && exit"
– Pierre-Alain TORET Dec 14 '18 at 18:26konsole -e 'sh -c "ls; exec bash"'
in terminal A: terminal B opens, executes, and stays; terminal A doesn't show a prompt, accepts input, doesn't execute until terminal B is closed. Runningkonsole -e 'sh -c "ls; exec bash"' &
(note the final&
) in terminal A: terminal B opens, executes, and stays; terminal A shows a prompt, accepts input, executes without waiting terminal B to be closed. All this is expected. (Continue...) – fra-san Dec 16 '18 at 12:07