RUN(1)

NAME
run - start programs with hidden console window

SYNOPSIS
run [ -p path ] command [ -wait ] [ -quote ] arguments runcommand [ -p path ] [ -wait ] [ -quote ] arguments

DESCRIPTION
Windows programs are either GUI programs or console programs. When started console programs will either attach to an existing console or create a new one. GUI programs can never attach to an exiting console. There is no way to attach to an existing console but hide it if started as GUI program.

run will do this for you. It works as intermediate and starts a program but makes the console window hidden. With -p path you can add path to the PATH environment variable. Issuing -wait as first program argument will make run wait for program completition, otherwise it returns immediately. The -quote option enables automatic quoting of arguments with embedded whitespace, double quotes or backslashes for consumption by the standard Microsoft startup code or compatible implementations. If you do not use this option, run assumes that the arguments are already correctly quoted for the consumer and simply concatenates them separated by single spaces. The second variant is for creating wrappers. If the executable is named runcommand (eg runemacs), run will try to start the program (eg emacs).

EXAMPLES
run -p /usr/X11R6/bin xterm run emacs -wait
runemacs -wait run make -wait

AUTHORS
Charles S. Wilson Harold L Hunt II Jehan Bing Alexander Gottwald