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

Categories

0 votes
1.1k 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...