Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
937 views
in Technique[技术] by (71.8m points)

sh - Create a shell script to open a terminal and execute commands from that terminal

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...