IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 1 > exec man page

exec man page

Section 1 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





User Commands                                             exec(1)



NAME
     exec, eval, source - shell  built-in  functions  to  execute
     other commands

SYNOPSIS
  sh
     exec [argument...]

     eval [argument...]

  csh
     exec command

     eval argument...

     source [-h] name

  ksh
     *exec [arg...]

     *eval [arg...]

DESCRIPTION
  sh
     The exec command specified by the arguments is  executed  in
     place   of  this  shell  without  creating  a  new  process.
     Input/output arguments may appear and, if no other arguments
     are given, cause the shell input/output to be modified.

     The arguments to the eval built-in are read as input to  the
     shell and the resulting command(s) executed.

  csh
     exec executes command in place of the current  shell,  which
     terminates.

     eval reads its arguments as input to the shell and  executes
     the  resulting  command(s).  This is usually used to execute
     commands generated as the result of command or variable sub-
     stitution.

     source reads commands from  name.  source  commands  may  be
     nested,  but if they are nested too deeply the shell may run
     out of file descriptors. An error in a sourced file  at  any
     level terminates all nested source commands.

     -h       Place commands from the file name  on  the  history
              list without executing them.







SunOS 5.10          Last change: 17 Jul 2002                    1






User Commands                                             exec(1)



  ksh
     With the exec built-in, if arg is given, the command  speci-
     fied  by  the  arguments  is executed in place of this shell
     without creating a new process. Input/output  arguments  may
     appear  and  affect the current process. If no arguments are
     given the effect of this command is to modify file  descrip-
     tors as prescribed by the input/output redirection list.  In
     this case, any file descriptor numbers greater than  2  that
     are  opened  with  this  mechanism  are closed when invoking
     another program.

     The arguments to eval are read as input to the shell and the
     resulting command(s) executed.

     On this man page, ksh(1) commands that are preceded  by  one
     or  two * (asterisks) are treated specially in the following
     ways:

     1.  Variable assignment lists preceding the  command  remain
         in effect when the command completes.


     2.  I/O redirections are processed  after  variable  assign-
         ments.


     3.  Errors cause a script that contains them to abort.


     4.  Words, following a command preceded by **  that  are  in
         the  format  of a variable assignment, are expanded with
         the same rules as a variable assignment. This means that
         tilde  substitution  is  performed  after the = sign and
         word splitting and file name  generation  are  not  per-
         formed.


EXIT STATUS
     For ksh:

     If command is not found, the exit status is 127. If  command
     is  found, but is not an executable utility, the exit status
     is 126. If a redirection error occurs, the shell exits  with
     a  value  in the range 1-125. Otherwise, exec returns a zero
     exit status.

ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:






SunOS 5.10          Last change: 17 Jul 2002                    2






User Commands                                             exec(1)



     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWcsu                     |
    |_____________________________|_____________________________|


SEE ALSO
     csh(1), ksh(1), sh(1), attributes(5)














































SunOS 5.10          Last change: 17 Jul 2002                    3





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:24:39 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5053 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (4731 hits)
(Solaris 10 11_06)

CPAN man page (4448 hits)
(Suse Linux 10.1)

ssh man page (4240 hits)
(Suse Linux 10.1)

svn man page (4098 hits)
(FreeBSD 6.2)

startproc man page (2154 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2091 hits)
(Solaris 10 11_06)

netcat man page (2083 hits)
(Suse Linux 10.1)

signal man page (1945 hits)
(Suse Linux 10.1)

pprosetup man page (1944 hits)
(Solaris 10 11_06)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: About Pyrenees Mountain Holidays :: Electronic Design Bedfordshire :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum