command man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

command(1)							    command(1)

NAME
       command - execute a simple command

SYNOPSIS
       command_name [argument ...]

DESCRIPTION
       enables the shell to treat the arguments as a simple command, suppress‐
       ing the shell function lookup.

       If command_name is not the name of the function, the effect of  is  the
       same as omitting command.

   Operands
       recognizes the following operands:

	      command_name     The name of a HP-UX command or a shell built-in
			       command.

	      argument	       One or more strings to be interpreted as	 argu‐
			       ments to command_name.

       The  command is necessary to allow functions that have the same name as
       a command to call the command (instead of a recursive call to the func‐
       tion).

       Nothing	in  the	 description  of is intended to imply that the command
       line is parsed any differently than  any	 other	simple	command.   For
       example,

       is  not	parsed	in  any special way that causes or to be treated other
       than a pipe operator or semicolon or that prevents function lookup on b
       or c.

EXTERNAL INFLUENCES
   Environment Variables
       determines the search path used during the command search.

RETURN VALUE
       exits with one of the following values:

	      ·	 If fails:

		 126	 The  utility  specified  by the command_name is found
			 but not executable.

		 127	 An error occurred in the utility or the utility spec‐
			 ified by command_name is not found.

	      ·	 If does not fail:

		 The  exit status of is the same as that of the simple command
		 specified by the arguments: command_name[argument ...]

EXAMPLES
       Create a version of the command that always prints the name of the  new
       working directory whenever it is used:

	      cd() {
		      command "$@" >/dev/null
		      pwd
	      }

       Circumvent  the redefined command above, and change directories without
       printing the name of the new working directory:

SEE ALSO
       getconf(1), sh-posix(1), confstr(3C).

STANDARDS CONFORMANCE
								    command(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net