Command to run a .bat file

“F:\- Big Packets -\kitterengine\Common\Template.bat” maybe prefaced with call (see call /?). Or Cd /d “F:\- Big Packets -\kitterengine\Common\” & Template.bat. CMD Cheat Sheet Cmd.exe Getting Help Punctuation Naming Files Starting Programs Keys CMD.exe First thing to remember its a way of operating a computer. It’s the way we did it before WIMP (Windows, Icons, Mouse, … Read more

zsh: update prompt with current time when a command is started

This is in fact possible without resorting to strange hacks. I’ve got this in my .zshrc RPROMPT='[%D{%L:%M:%S %p}]’ TMOUT=1 TRAPALRM() { zle reset-prompt } The TRAPALRM function gets called every TMOUT seconds (in this case 1), and here it performs a prompt refresh, and does so until a command starts execution (and it doesn’t interfere … Read more

Don’t make me manually abort a LaTeX compile when there’s an error

With MikTeX, pdflatex has this command-line option: -interaction=MODE Set the interaction mode; MODE must be one of: batchmode, nonstopmode, scrollmode, errorstopmode. Edit suggested by @9999years: Those values are equivalent to a set of LaTeX \commands that provide the same functionality. From TeX usage tips: The modes make TeX behave in the following way: errorstopmode stops … Read more

Bash prompt with the last exit code

As you are starting to border on a complex PS1, you might consider using PROMPT_COMMAND. With this, you set it to a function, and it will be run after each command to generate the prompt. You could try the following in your ~/.bashrc file: PROMPT_COMMAND=__prompt_command # Function to generate PS1 after CMDs __prompt_command() { local … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)