[HPADM] duplication of standard output

From: HAUTECOEUR Bruno (HAUTECOB_at_ESSILOR.fr)
Date: 10/01/04

  • Next message: HAUTECOEUR Bruno: "[HPADM] TR : duplication of standard output"
    To: hpadm <hpux-admin@dutchworks.nl>
    Date: Fri, 1 Oct 2004 14:27:41 +0200 
    
    
    

    Hi admins

    i need to duplicate standard output in a script. I have really wrote
    "duplicate" and not redirect.
    In man ksh, it is wrote:

    >&digit The standard output is duplicated to file
                              descriptor digit (see dup(2)).

    but when i use this expression, there is no duplication but only
    redirection.

    In the script, i use:

    exec 1>file
    exec 2>&1

    this work fine for redirection, but not for duplication. I need outputs and
    errors to be on the screen AND in a file for the whole script.

    What am i missing ?

    regards
    ________________
    Bruno HAUTECOEUR
    Architecte système Unix
    DSI / Architecture & Systèmes - Essilor International
    Tel: 33 (0)1 72 94 73 20 - Fax: 01 39 26 53 08
    mail: hautecob@essilor.fr

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: HAUTECOEUR Bruno: "[HPADM] TR : duplication of standard output"

    Relevant Pages

    • [HPADM] TR : duplication of standard output
      ... but all say: use "tee command". ... I would insist that i want to duplicate the whole script outputs and errors ... this work fine for redirection, ...
      (HP-UX-Admin)
    • Re: Seperating CSV rows into new, seperate files
      ... of a script but it still has one more problem. ... will import the list will ignore duplicate rows. ... >> and I am working on a way to parse a CSV file of class lists from MS ... The difference is that the session number changes. ...
      (comp.lang.python)
    • Re: Compare tables for duplicates
      ... There are regular fields that have a different value in each record, and global fields which have the same value in all the records of that file. ... If I create a regular field that I name 'Constant' of type 'Texte' and that I make 'Calculated', then I may say that that calculation will be 1 and type 'Number'. ... Say in A, I want to tell B of the value of the NameID of the current record of A. I then make a script line in A saying 'Set Field' where 'gn1' is a global field numeric, then a second script line passes the hand to B by 'Perform Script. ... I created a field in Table A called Duplicate. ...
      (comp.databases.filemaker)
    • Re: Compare tables for duplicates
      ... There are regular fields that have a different value in each record, and global fields which have the same value in all the records of that file. ... If I create a regular field that I name 'Constant' of type 'Texte' and that I make 'Calculated', then I may say that that calculation will be 1 and type 'Number'. ... Say in A, I want to tell B of the value of the NameID of the current record of A. I then make a script line in A saying 'Set Field' where 'gn1' is a global field numeric, then a second script line passes the hand to B by 'Perform Script. ... I created a field in Table A called Duplicate. ...
      (comp.databases.filemaker)
    • Re: Removing Duplicates In Filemaker The Easy Way
      ... database, read on, here is a simple way to accomplish this with ... agood duplicate record identification and removal/merger feature. ... the database is called "DATA.fp7" and the script ... The sort option is "Address" because address is the field that I ...
      (comp.databases.filemaker)