legacy

How can I run a Windows GUI application on as a service?

﹥>﹥吖頭↗ 提交于 2019-11-26 08:16:57
问题 I have an existing GUI application that should have been implemented as a service. Basically, I need to be able to remotely log onto and off of the Windows 2003 server and still keep this program running. Is this even possible? EDIT: Further refinement here... I do not have the source, it\'s not my application. 回答1: Windows services cannot have GUIs, so you will need to either get rid of the GUI or separate your application into two pieces - a service with no UI, and a "controller"

bash: $[<arithmetic-expression>] vs. $((<arithmetic-expression>))

折月煮酒 提交于 2019-11-26 07:46:26
问题 I have just stumbled upon the bash syntax: foo=42 bar=$[foo+1] # evaluates an arithmetic expression When I Googled for this, I found http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.html#sect_03_04_05: 3.4.6. Arithmetic expansion Arithmetic expansion allows the evaluation of an arithmetic expression and the substitution of the result. The format for arithmetic expansion is: $(( EXPRESSION )) ... Wherever possible, Bash users should try to use the syntax with square brackets: $[