当前位置:网站首页>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
- One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
- Notes on problems -- watching videos on edge will make the screen green
- Wechat applet for the first time
- Life is still confused? Maybe these subscription numbers have the answers you need!
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- [RT thread] NXP rt10xx device driver framework -- Audio construction and use
- [RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
- Open vsftpd port under iptables firewall
- Y is always discrete and can't understand, how to solve it? Answer: read it several times
猜你喜欢

1147_ Makefile learning_ Target files and dependent files in makefile

Test your trained model

Redis: operation commands for list type data
![Luogu: p2685 [tjoi2012] Bridge](/img/f5/f77027288a211ae466781b09ce650f.jpg)
Luogu: p2685 [tjoi2012] Bridge

Leetcode Valentine's Day Special - looking for a single dog
![[RT thread] NXP rt10xx device driver framework -- Audio construction and use](/img/85/32a83eaa4b7f5b30d4d7c4f4c32791.png)
[RT thread] NXP rt10xx device driver framework -- Audio construction and use

Simple use of unity pen XR grab

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

QT学习日记9——对话框

Applet setting multi account debugging
随机推荐
Vs2013 has blocked the installer, and ie10 needs to be installed
Managing multiple selections with MVVM - managing multiple selections with MVVM
RDS数据库的监测页面在哪看?
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
link preload prefetch
Leetcode540: a single element in an ordered array
Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
Apache service suspended asynchronous acceptex failed
How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?
[combinatorics] recursive equation (definition of general solution | structure theorem of general solution of recursive equation without multiple roots)
New library online | cnopendata complete data of Chinese insurance institution outlets
When absolutely positioned, the element is horizontally and vertically centered
AcWing 4489. 最长子序列
Deops入门
QT学习日记9——对话框
University of Electronic Science and technology, accounting computerization, spring 20 final exam [standard answer]
Unity notes unityxr simple to use
What is the difference between cloud server and cloud virtual machine
Squid service startup script
1164 Good in C