This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sermn_wiki:userpages:marta:reserves_automatiques_manteniment_2022 [2022/08/19 17:16] miquel [Seguretat] |
sermn_wiki:userpages:marta:reserves_automatiques_manteniment_2022 [2022/08/23 19:57] (current) miquel [Dateutils] |
||
---|---|---|---|
Line 7: | Line 7: | ||
**IMPORTANT: | **IMPORTANT: | ||
+ | ===== Instal·lar el paquet " | ||
- | ===== maintenance_bookings.sh ===== | + | Instal·lo el paquet '' |
+ | |||
+ | < | ||
+ | $ sudo apt install dateutils | ||
+ | [sudo] password for sermnadmin: ****** | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following NEW packages will be installed: | ||
+ | dateutils | ||
+ | 0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded. | ||
+ | Need to get 217 kB of archives. | ||
+ | After this operation, 1,555 kB of additional disk space will be used. | ||
+ | Get:1 http:// | ||
+ | Fetched 217 kB in 0s (586 kB/s) | ||
+ | Selecting previously unselected package dateutils. | ||
+ | (Reading database ... 253630 files and directories currently installed.) | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking dateutils (0.4.3-1) ... | ||
+ | Setting up dateutils (0.4.3-1) ... | ||
+ | Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ... | ||
+ | Processing triggers for man-db (2.8.5-2) ... | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== maintenance_bookings_2022.sh ===== | ||
<WRAP todo> | <WRAP todo> | ||
Line 16: | Line 42: | ||
Aquest es el programet que crea les reserves per l' | Aquest es el programet que crea les reserves per l' | ||
- | <code bash maintenance_bookings.sh> | + | <code bash maintenance_bookings_2022.sh> |
#!/bin/bash | #!/bin/bash | ||
# | # | ||
- | # maintenance_bookings.sh | + | # maintenance_bookings_2022.sh |
# | # | ||
# (c) 2013, Miquel Cabanas, SeRMN, UAB | # (c) 2013, Miquel Cabanas, SeRMN, UAB | ||
Line 212: | Line 238: | ||
<WRAP todo> | <WRAP todo> | ||
- | FIXME comprovar. | + | FIXME cal comprovar |
</ | </ | ||
Line 226: | Line 252: | ||
deny from all | deny from all | ||
</ | </ | ||
+ | |||
+ | ===== Documentació ===== | ||
+ | |||
+ | ==== BASH date math ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ==== BASH modulus operator ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ==== Debugging BASH ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ==== Dateutils ==== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ==== Cron ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * cron | Getting crontab events that would happen given a start date/time - Unix & Linux Stack Exchange.]] | ||