当前位置:网站首页>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边栏推荐
- Enterprise custom form engine solution (XI) -- form rule engine 1
- link preload prefetch
- How do large consumer enterprises make digital transformation?
- AcWing 4489. 最长子序列
- [RT thread] NXP rt10xx device driver framework -- Audio construction and use
- 鸿蒙第四次培训
- 自动渗透测试工具核心功能简述
- Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- How SVN views modified file records
猜你喜欢

Simple use of unity pen XR grab

【JokerのZYNQ7020】DDS_ Compiler。

UE4 official charging resources, with a total price of several thousand

Automata and automatic line of non-standard design

Hongmeng third training

新库上线 | CnOpenData中国保险机构网点全集数据

New library online | cnopendata complete data of Chinese insurance institution outlets

kubernetes资源对象介绍及常用命令(三)

vs2013已阻止安装程序,需安装IE10

2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
随机推荐
Kotlin learning quick start (7) -- wonderful use of expansion
[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
鸿蒙第三次培训
Stm32h7 Hal library SPI DMA transmission has been in busy solution
September, 19, "cam principle and application" online assignment [Full Score answer]
Deops入门
Write a program to process a list container of string type. Find a special value in the container 9.27: and delete it if found. Rewrite the above procedure with deque container.
How SVN views modified file records
Life is still confused? Maybe these subscription numbers have the answers you need!
Hongmeng third training
【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
Apache服务挂起Asynchronous AcceptEx failed.
Rsync remote synchronization
SVN完全备份svnadmin hotcopy
STM32实现74HC595控制
Qt调节Win屏幕亮度和声音大小
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Svn full backup svnadmin hotcopy
Automata and automatic line of non-standard design
毕业总结