当前位置:网站首页>Create a new file from templates with bash script - create new file from templates with bash script
Create a new file from templates with bash script - create new file from templates with bash script
2022-07-03 17:32:00 【javail】
problem :
I have to create conf files and init.d which are very similar. I have to create very similar conf Document and init.dThese files permit to deploy new http service on my servers. These files allow new http service .These files are the same and only some parameters change from one file to another ( listen_port , domain, path on server...). These documents are the same , Only some parameters are changed from one file to another ( listen_port 、 Domain 、 Path on server ...).
As any error in these files leads to misfunction of service I would like to create these files using a bash script. Any error in these files will cause the service to malfunction , I want to use bash Scripts create these files .
For example: for example :
generate_new_http_service.sh 8282 subdomain.domain.com /home/myapp/rootOfHTTPServiceI am looking for a kind of templating module that I could use with bash. I'm looking for a way to communicate with bash Template modules used together .This templating module would use some generic conf and init.d scripts to create new ones. This template module will use some general conf and init.d Script to create a new .
Do you have hints for that? Do you have any tips ?If not I could use python templating engine. without , I can use python template engine .
Solution :
Reference resources : https://stackoom.com/en/question/Q4jn边栏推荐
- vs2013已阻止安装程序,需安装IE10
- RDS数据库的监测页面在哪看?
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
- PHP processing - watermark images (text, etc.)
- [combinatorics] recursive equation (summary of the solution process of recursive equation | homogeneous | double root | non-homogeneous | characteristic root is 1 | exponential form | the bottom is th
- Swm32 series Tutorial 4 port mapping and serial port application
- Vs code plug-in korofileheader
- Apache服务挂起Asynchronous AcceptEx failed.
- 互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
猜你喜欢

Play with fancy special effects. This AE super kit is for you

PS screen printing brush 131, many illustrators have followed suit

Golang单元测试、Mock测试以及基准测试

Test your trained model

Kubernetes resource object introduction and common commands (4)

【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用

Automata and automatic line of non-standard design

SQL injection database operation foundation
![[UE4] brush Arctic pack high quality Arctic terrain pack](/img/e7/bc86bd8450b0b2bdec8980a2aa1a10.jpg)
[UE4] brush Arctic pack high quality Arctic terrain pack

Internet hospital his management platform source code, online consultation, appointment registration smart hospital applet source code
随机推荐
1164 Good in C
QT learning diary 9 - dialog box
STM32实现74HC595控制
Detailed explanation of common network attacks
【JokerのZYNQ7020】DDS_ Compiler。
Enterprise custom form engine solution (XI) -- form rule engine 1
PHP returns 500 errors but no error log - PHP return 500 error but no error log
Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
The difference between get and post
Web-ui automated testing - the most complete element positioning method
What is the difference between cloud server and cloud virtual machine
Kubernetes resource object introduction and common commands (III)
RDS数据库的监测页面在哪看?
Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
[combinatorics] recursive equation (summary of the solution process of recursive equation | homogeneous | double root | non-homogeneous | characteristic root is 1 | exponential form | the bottom is th
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
New library online | cnopendata China bird watching record data
A day's work list of an ordinary programmer
Qt调节Win屏幕亮度和声音大小
How to read the source code [debug and observe the source code]