Monday, 9 February 2015

How to run exec bash command from bash script topic






I have a bash script and I want to run commands like these.
First-Command
&& exec bash
&& Last-Command

The exec bash will throw a error in this way.
If I write like this:
First-Command;
exec bash;
Last-Command

The Last-Command doesnt work because of exec bash starting a new thread.

Is there a work around of this scenario?

Can we connect some editor application to a terminal and submit commands to the terminal through that editor application.

Thank You.

Best Regards,
Yusuf






No comments:

Post a Comment