Skip to content

Instantly share code, notes, and snippets.

@andreburto
Created February 15, 2018 00:06
Show Gist options
  • Save andreburto/ca308c04a2150f3a76a87e441ac1d51f to your computer and use it in GitHub Desktop.
Save andreburto/ca308c04a2150f3a76a87e441ac1d51f to your computer and use it in GitHub Desktop.
# Tomcat commands
Set-Variable -Name tomcat_path -Value "C:\path\to\apache-tomcat\bin\" -Scope global -Force
function start-tomcat {
$return_to = Get-Location
set-location -Path $tomcat_path
start-process .\startup.bat
Set-Location $return_to
}
function stop-tomcat {
$return_to = Get-Location
set-location -Path $tomcat_path
start-process .\shutdown.bat
Set-Location $return_to
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment