% @(#)vaxx.hlq 17.1.1.1 (ESO-IPG) 01/25/02 17:43:56 %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %.COPYRIGHT (c) 1990 European Southern Observatory %.IDENT vaxx.hlq %.AUTHOR KB, IPG/ESO %.KEYWORDS MIDAS, help files, $/ %.PURPOSE On-line help file for the command: $/ %.VERSION 1.0 17-OCT-1983 : Creation, KB %.VERSION 1.1 21-JUN-1991 : Update, KB %.VERSION 1.2 18-FEB-1992 : add support of C-shell, KB %.VERSION 1.3 15-JUL-1992 : add `$$' for passing line as it is to host, KB %---------------------------------------------------------------- \noqualifier \se SECTION./ \es\co $ 15-JUL-1992 KB \oc\su $ comnd execute a host system command \us\pu Purpose: Execute a host (operating system) command. Currently supported host systems are VAX/VMS and all major UNIX systems. \up\sy Syntax: $ host-comnd \ys\pa host-comnd = a UNIX (Bourne-shell) or VMS (DCL) command to be executed \ap\sa See also: SET/MIDAS_SYSTEM \\ Chapter 3 of the MIDAS Users Guide, Vol. A \as\ no Note: Before passing the command line to the host system all substitutions of MIDAS are performed. If you want to pass the line "as it is", use: $$ host-comnd . \\ But note, that the $$ command only works interactively... \on\exs Examples: \ex $ date Get the current time in UNIX. \xe\ex $ show time Get the current time in VMS. \xe\ex $$ cp /rio/grande/elpaso.bdf . In Unix, copy the file elpaso.bdf in directory /rio/grande to current directory with same name. If only a single `$' would be used the name of the new file would depend upon the contents of the preceding line, a name like `?' is quite likely... \xe\ex $$ delete [rio.grande]elpaso.bdf;* In VMS, delete the file elpaso.bdf in directory [rio.grande]. Again, a single `$' would lead to a VMS error message, since the line would be split up into 2 MIDAS commands... \xe \sxe