当前位置:网站首页>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.d
These 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/rootOfHTTPService
I 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边栏推荐
- Apache service suspended asynchronous acceptex failed
- Life is still confused? Maybe these subscription numbers have the answers you need!
- 基于主机的入侵系统IDS
- 互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
- Leetcode13. Roman numeral to integer (three solutions)
- Assembly for unloading Loadfrom() loaded assembly - unloading the assembly loaded with assembly LoadFrom()
- How do large consumer enterprises make digital transformation?
- Web-ui automated testing - the most complete element positioning method
- Automata and automatic line of non-standard design
- Analyse ArrayList 3: suppression d'éléments
猜你喜欢
Design e-commerce spike
[UE4] brush Arctic pack high quality Arctic terrain pack
Notes on problems -- watching videos on edge will make the screen green
UE4 official charging resources, with a total price of several thousand
Leetcode Valentine's Day Special - looking for a single dog
SWM32系列教程4-端口映射及串口应用
Hongmeng fourth training
kubernetes资源对象介绍及常用命令(三)
Baiwen.com 7 days Internet of things smart home learning experience punch in the next day
Qt调节Win屏幕亮度和声音大小
随机推荐
Hongmeng fourth training
POM in idea XML graying solution
数仓任务里面 跑SQL任务的时候用的数据库账号是在哪里配置的
Stm32h7 Hal library SPI DMA transmission has been in busy solution
[combinatorics] recursive equation (special solution example 1 Hannover tower complete solution process | special solution example 2 special solution processing when the characteristic root is 1)
Simple configuration of postfix server
设计电商秒杀
PR second time
Javescript variable declaration -- VaR, let, const
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]
Apache service suspended asynchronous acceptex failed
Detailed explanation of common network attacks
基于主机的入侵系统IDS
Hongmeng third training
[combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
绝对定位时元素水平垂直居中
互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
LeetCode13.罗马数字转整数(三种解法)
[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
Web-ui automated testing - the most complete element positioning method