Re: Script question

From: Miller, Dave (I.S.) (Dave.Miller_at_BHS.ORG)
Date: 08/27/04

  • Next message: Jason delaFuente: "SMIT vs. Command Line"
    Date:         Fri, 27 Aug 2004 13:34:57 -0400
    To: aix-l@Princeton.EDU
    
    

    Here we go...
    With this when its complete "dave4" is truncated.
    However if I issue
    /usr/local/bin/msgview > /tmp/dave4
    Outside of a script, /tmp/dave4 will not be truncated.
    thanks

    #!/usr/bin/ksh
    #set -vx
    .. /home/d_build/.profile
    export LIBPATH=......
    /usr/local/bin/msgview > /tmp/dave
    sleep 5
    sort /tmp/dave -o /tmp/dave2
    uniq /tmp/dave2 /tmp/dave3
    cat /tmp/dave3 >/tmp/dave4

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Green, Simon
    Sent: Friday, August 27, 2004 11:06 AM
    To: aix-l@Princeton.EDU
    Subject: Re: Script question

    I've done a very simple test on one of my 4.3.3 systems and I didn't
    have
    any problems: it successfully created an output file with lines of over
    80
    characters length.

    Could it be a problem with your shell environment?
    Can you show us the salient parts of the script?

    --
    Simon Green
    Altria ITSC Europe Ltd
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: Miller, Dave (I.S.) [mailto:Dave.Miller@BHS.ORG]
    Sent: 27 August 2004 14:45
    To: aix-l@Princeton.EDU
    Subject: Re: Script question
    the cron entry has >/tmp/myfile
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Green, Simon
    Sent: Friday, August 27, 2004 9:35 AM
    To: aix-l@Princeton.EDU
    Subject: Re: Script question
    How are you getting the cron output?  Are you redirecting the script to
    a
    file still, or relying on the output being mailed to you?
    --
    Simon Green
    Altria ITSC Europe Ltd
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: Miller, Dave (I.S.) [mailto:Dave.Miller@BHS.ORG]
    Sent: 27 August 2004 14:09
    To: aix-l@Princeton.EDU
    Subject: Script question
    When I run a korn shell script,interactively, and redirect it to a file,
    for
    a program that produces 120 byte output lines, it displays all 120 bytes
    in
    the file no problem.
    Example: myscript>/tmp/thefile.
    However if I run it via a cron entry, the output  is  truncated to 80
    bytes.
    I tried putting stty cols120 in the script, to no avail. Any other
    insight?
    -----------------------------------------
    CONFIDENTIALITY NOTICE: This email communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at (413) 794-0000 and destroy all copies of this communication and any attachments.  For further information regarding Baystate Health System's privacy policy, please visit our Internet web site at http://www.baystatehealth.com.
    

  • Next message: Jason delaFuente: "SMIT vs. Command Line"

    Relevant Pages