How to pass command line argument to gnuplot?

You can input variables via switch -e $ gnuplot -e “filename=”foo.data”” foo.plg In foo.plg you can then use that variable $ cat foo.plg plot filename pause -1 To make “foo.plg” a bit more generic, use a conditional: if (!exists(“filename”)) filename=”default.dat” plot filename pause -1 Note that -e has to precede the filename otherwise the file … Read more

Comments in command-line Zsh

Having just started trying out zsh, I ran into this problem too. You can do setopt interactivecomments to activate the bash-style comments. The Z Shell Manual indicates that while this is default behavior for ksh (Korn shell) and sh (Bourne shell), and I am guessing also for bash (Bourne-again shell), it is not default for … Read more

How to pass argument to Makefile from command line?

You probably shouldn’t do this; you’re breaking the basic pattern of how Make works. But here it is: action: @echo action $(filter-out $@,$(MAKECMDGOALS)) %: # thanks to chakrit @: # thanks to William Pursell EDIT: To explain the first command, $(MAKECMDGOALS) is the list of “targets” spelled out on the command line, e.g. “action value1 … Read more

Why is my command prompt freezing on Windows 10?

The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into “selection” mode. You can tell … Read more

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