*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> log (8)              
Title
Content
Arch
Section
 

log(8)

Contents


NAME    [Toc]    [Back]

       log - Records input and output from a program

SYNOPSIS    [Toc]    [Back]

       /usr/sbin/log <logfile> <command>

OPERANDS    [Toc]    [Back]

       The  file in which to record the interaction being logged.
       The command to execute.

DESCRIPTION    [Toc]    [Back]

       The log program runs <command> and logs the input  to  and
       output  from  <command>  to the <logfile> file.  Input and
       output are logged until <command> exits, the  log  program
       exits, and the exit status of <command> is returned.

       The  log program is used by the system installation procedure
   and   the   it(8)    command    to    create    the
       /var/adm/smlogs/install.log   and   /var/adm/smlogs/it.log
       installation log files.

RESTRICTIONS    [Toc]    [Back]

       Because the log program is used in the installation  standalone
  environment, program size was the greatest concern
       in its implementation.  The log program  does  not  search
       for  the  PATH variable to locate <command> and error messages
 are terse.

       The log program causes <command> to  take  standard  input
       from  and write standard output and standard error to UNIX
       pipes.  Some commands will not be able to operate in  this
       environment;  therefore,  it is suggested that you use the
       script(1) command instead.  UNIX  shells  will  not  issue
       prompts when run from log unless the shell is started with
       an explicit interactive switch (-i for most shells).   For
       example, log foo.tmp /sbin/sh -i

       In the previous example, foo.tmp is the name of <logfile>.

       The log program intercepts end-of-file  (usually  Ctrl/d).
       Therefore  programs  which normally receive end-of-file as
       an exit command must exit by some other means.

ERRORS    [Toc]    [Back]

       Log open error

              Explanation:

              The log program was unable to open <logfile>.  Verify
  that  the directory exists and that ownerships
              and permissions are set correctly.  Exec Error

              Explanation:

              The log program was unable  to  execute  <command>.
              Verify that you specified a full pathname for <command>
 and that <command>  is  an  executable  file.
              Fork Error

              Explanation:

              The  log  program  was  unable to create one of the
              processes it requires to log data.

SEE ALSO    [Toc]    [Back]

      
      
       Commands: it(8), script(1)



                                                           log(8)
[ Back ]
 Similar pages
Name OS Title
fwtmp Tru64 Modify connect time accounting records to change formats and to make corrections in the records
acctwtmp Tru64 Modify connect time accounting records to change formats and to make corrections in the records
wtmpfix Tru64 Modify connect time accounting records to change formats and to make corrections in the records
poll IRIX input/output multiplexing
ios IRIX input/output formatting
fread IRIX binary input/output
fwrite NetBSD binary stream input/output
fread Linux binary stream input/output
fwrite OpenBSD binary stream input/output
fwrite Tru64 Perform input/output operations
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service