Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Created June 10, 2021 07:57
Show Gist options
  • Save souhaiebtar/129b50cfa6926e6a481f4c448a59ccab to your computer and use it in GitHub Desktop.
Save souhaiebtar/129b50cfa6926e6a481f4c448a59ccab to your computer and use it in GitHub Desktop.
[PowerShell start exe file in background] powershell start exe file in background #windows #powershell #background
Start-job -name mysqlServer { C:\Users\starhouni\Documents\APPS\mysql-5.7.32-winx64\bin\mysqld.exe --defaults-file=C:\Users\starhouni\Documents\APPS\mysql-5.7.32-winx64\my.ini --log_syslog=0 }
Start-Job -name phpApp { C:\Users\starhouni\Documents\APPS\xampp\php\php.exe -S 127.0.0.1:8081 -t C:\Users\starhouni\Documents\APPS\xampp\htdocs\copperfield > $null 2>&1 }
# https://stackoverflow.com/questions/185575/powershell-equivalent-of-bash-ampersand-for-forking-running-background-proce
# https://devblogs.microsoft.com/scripting/clean-up-your-powershell-history-to-remove-error-entries/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment