当前位置:网站首页>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边栏推荐
- 【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
- Graduation summary
- How to purchase Google colab members in China
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- The difference between i++ and ++i: tell their differences easily
- Leetcode13. Roman numeral to integer (three solutions)
- [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
- Tensorboard quick start (pytoch uses tensorboard)
- AcWing 4489. Longest subsequence
- Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
猜你喜欢

Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos

Leetcode 669 pruning binary search tree -- recursive method and iterative method

Tensorboard quick start (pytoch uses tensorboard)

IntelliJ 2021.3 short command line when running applications

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

Hongmeng third training

Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
![[RT thread] NXP rt10xx device driver framework -- RTC construction and use](/img/19/91a9d84ba84f81ef125c33eb4007bc.png)
[RT thread] NXP rt10xx device driver framework -- RTC construction and use

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

One brush 149 force deduction hot question-10 regular expression matching (H)
随机推荐
简单配置PostFix服务器
网络硬盘NFS的安装与配置
September, 19, "cam principle and application" online assignment [Full Score answer]
[combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
Luogu: p2685 [tjoi2012] Bridge
ArrayList analysis 3: delete elements
Where is the database account used when running SQL tasks in data warehouse tasks configured
Vs code plug-in korofileheader
AcWing 3438. 数制转换
[set theory] order relation: summary (partial order relation | partial order set | comparable | strictly less than | covering | hasto | total order relation | quasi order relation | partial order rela
Wechat applet for the first time
自动渗透测试工具核心功能简述
企业级自定义表单引擎解决方案(十一)--表单规则引擎1
University of Electronic Science and technology, accounting computerization, spring 20 final exam [standard answer]
Golang单元测试、Mock测试以及基准测试
互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
Unity notes unityxr simple to use
VM11289 WAService. js:2 Do not have __ e handler in component:
[RT thread] NXP rt10xx device driver framework -- pin construction and use
What is the difference between cloud server and cloud virtual machine