Hello,
`` and exec() only can run commands in a new child process individually. Commands in different `` or exec call can not interact. For example:
I hope my daemon script can read user's input as command from the listening port and run them all in one shell. Even if user inputs "sh", I hope it can fork a bash that cover the default csh and then user can run their following commands in the bash.
I have been pursuing the solution for a long time.
Do you have any good ideas to help to implement it?