[HPADM] Sending "nohup"-ed scripts output to a log file

From: Abramson, Stuart (SAbramson_at_Wabtec.com)
Date: 01/22/04

  • Next message: bill.thompson_at_goodyear.com: "[HPADM] Re: Sending "nohup"-ed scripts output to a log file"
    To: "Hpux-Admin (hpux-admin@dutchworks.nl)" <hpux-admin@dutchworks.nl>
    Date: Thu, 22 Jan 2004 14:57:39 -0500
    
    

    Hpux-admins:

    We run scripts that have "nohup"s in them from cronjobs:

                    #
                    # Start concurrent syncs of both RPT and BKP
    instances..
                    #

                    #
                    # Synch BKP
                    #
                    cd /usr/bcv/logs
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh bkp_tp sync &
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh bkp_db sync &
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh bkp_al sync &
                    #
                    # Synch RPT
                    #
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh rpt_tp sync &
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh rpt_db sync &
                    nohup ksh -x /usr/bcv/scripts/bcv_ops.ksh rpt_al sync &

    They can all run together, we don't care, in the background.

    But the output goes to "nohup.out" and it's all mixed up for 6 scripts in
    the same file.

    What can I do to get each nohup-ed script to write to a different file,
    nohup.XXX, for example.

            Stuart

    Stuart Abramson | WABTEC Corp. | Wilmerding, PA
    Off: 412/825-1434 | Cell: 412/417-1567 | email: sabramson@wabtec.com

    ***** CONFIDENTIALITY NOTE *****
    The content contained in this e-mail transmission is legally privileged and confidential information intended only for the use of the individual or entity named herein. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this transmission is strictly prohibited.

    --
                 ---> 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: bill.thompson_at_goodyear.com: "[HPADM] Re: Sending "nohup"-ed scripts output to a log file"

    Relevant Pages

    • Re: the new math
      ... Pictures of homecoming and on his HS football team and at his graduation ... drunk on his ass at a Halloween Party, Tickets for his 2 Grateful Dead ... 'They' can have the scripts with his name on them when they pry them from ... Not Good Enough for ya - Too Bad - Don't care. ...
      (alt.gathering.rainbow)
    • Re: how do I send mail
      ... Which shows you how to take care of the actual sending part, ... some Perl knowledge. ... >> That depends - what programming language are you looking for the scripts ...
      (microsoft.public.inetserver.iis)
    • Re: Does anyone know what this switch does?
      ... although the scripts are the same in both cases: ... kernel, and the kernel is not at all forgiving of possible stuff like a ... some flavor of Unix without converting the line endings. ... care, and the kernel doesn't care once it finds the start of an argument ...
      (comp.lang.perl.misc)
    • Re: Comment Spam for SEO
      ... >> as well would be better for them, but with the spamming scripts ... scripts to handle posts, and check them. ... Anyway, hence the name SEO Dave, he used that on a few blogs, maybe ... > I don't care. ...
      (alt.internet.search-engines)
    • Re: [netfilter-core] Re: [lockup] 2.6.17-rc3: netfilter/sctp: lockup in sctp_new(), do_basic
      ... proper Documentation/CodingStyle.) ... My scripts take care of whitespace when exporting patches for pushing ...
      (Linux-Kernel)