I have an file named seloger-cli located in /usr/lib/
/usr/lib/seloger-cli
While executing seloger-cli it will opens a terminal like below
root@testuser:/usr/lib# ./seloger-cli
<<<<< six is initialized in Multi-App Mode >>>>>>>>
Port..6--1225901584
**************************************************************************
** SELOGER APP - COMMAND LINE INTERFACE (CLI) **
**************************************************************************
[SELOGERCLI] seloger-cli>
From the seloger-cli command line interface I need to execute commands and the output of that command I have to write to a text file
So I have to create an sh file to run
1)seloger-cli interface
2)Execute commands from seloger-cli interface and write the output of the commands that executed from the seloger-cli interface to a file
How it can be possbile?
question from:
https://stackoverflow.com/questions/65840345/create-a-shell-script-to-open-a-terminal-and-execute-commands-from-that-terminal 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…