Skip to content

Instantly share code, notes, and snippets.

Avatar

Piergiorgio Brandolin pgbrandolin

  • Treviso
View GitHub Profile
@pgbrandolin
pgbrandolin / checklockn.bat
Created Apr 11, 2020
[checklockn.bat] Controllo del lock di un file in Windows #dos #lock
View checklockn.bat
@echo off
SETLOCAL EnableDelayedExpansion
rem.
rem Testing availability of external programs
rem.
set "THEGNUBIN=C:\Program Files (x86)\GnuWin32\bin"
where /q "%THEGNUBIN%:find.exe" || ECHO Could not find GNUWin32 find.exe && EXIT /B
where /q "%THEGNUBIN%:date.exe" || ECHO Could not find GNUWin32 date.exe && EXIT /B
rem.
rem DAYSKEEP : n. di giorni da mantenere
@pgbrandolin
pgbrandolin / tomrestart.bat
Created Apr 11, 2020
[tomrestart.bat] Stop Tomcat - Rotazione Log - Restart Tomcat Windows #dos #tomcat #log
View tomrestart.bat
@echo off
rem
SETLOCAL EnableDelayedExpansion
rem.
rem
rem FUNZIONE DELLO SCRIPT - Da posizionare in CATALINA_BASE\bin
rem #@# STOP Tomcat Service -> move/zip LOGS -> Restart Tomcat Service
rem IMPOSTAZIONI:
rem CATALINA_BASE = Directory di (questa istanza di) Tomcat
rem TOMSVCNAME = Nome del servizio Tomcat corrisponedente a questa directory "bin"
@pgbrandolin
pgbrandolin / folderhist.bat
Last active Apr 11, 2020
[folderhist.bat] Calcolo dello spazio in ambienti Windows #experica #viteria #emporiorossi #docmanager #dos
View folderhist.bat
#!/bin/bash
#
#--- Path dello script ridefinito esplicitamente
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
#--- Directory base su cui avviene la scansione
export THEBASEDIR=/home/e-progen/experica/experica
#--- Data corrente
export THEDATE=$(date +%Y%m%d)
#--- URLPART: Componenti url (da completare con l'ambiente)
URLBASE=http://127.0.0.1:8080
@pgbrandolin
pgbrandolin / w-edi-xml-archiver.sh
Last active Apr 11, 2020
[w-edi-xml-archiver.sh] Walk a directory tree in Linux #linux #bash #find #spaces #experica
View w-edi-xml-archiver.sh
#!/bin/bash
#
#--- Path dello script ridefinito esplicitamente
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
#--- Directory base su cui avviene la scansione
export THEBASEDIR=/home/e-progen/experica/experica
#--- Data corrente
export THEDATE=$(date +%Y%m%d)
#--- URLPART: Componenti url (da completare con l'ambiente)
URLBASE=http://127.0.0.1:8080
You can’t perform that action at this time.