[Q] tee does NOT put screen display to file ???

From: bbb bb (mccux1_at_HOTMAIL.COM)
Date: 12/27/04

  • Next message: Patrick B. O'Brien: "AIX 4.3 Kernel IPL's on a corrupt filesystem, no good."
    Date:         Mon, 27 Dec 2004 16:09:14 +0000
    To: aix-l@Princeton.EDU
    
    

    We are doing batch script for backup. The script supportly should show
    backup messages on monitor screen and also on log file. I test the script
    and look like "tee" does NOT put screen messages to file.

    my backup script are:

    for i in `cat /home/backup/lvdir`
    do
    /usr/sbin/backup -0 -u -f /dev/rmt1.1 $i |tee -a /tmp/backup.log
    echo "* \n" >>/tmp/backup.log
    echo "* End of backup file system: $i \n" >>/tmp/backup.log
    echo "********************************** \n" >>/tmp/backup.log
    echo "* \n" >>/tmp/backup.log
    done

    Thanks.


  • Next message: Patrick B. O'Brien: "AIX 4.3 Kernel IPL's on a corrupt filesystem, no good."

    Relevant Pages

    • Feedback on backup script
      ... The one problem I have is that the script keeps stopping at lines 633,635 and or 637 with the error "Path Not Found" I have emailed the original author for help but haven't heard back yet. ... I was just wondering if the problem could be that the account running the script doesn't have correct permissions to a share/directory/file that it's trying to backup? ... ' always one less than the actual number of folders. ... ' Show the user free space info on all available disk drives ...
      (microsoft.public.scripting.vbscript)
    • Script to Email Confirmation if Latest File Contains Specific String
      ... script which does the following: ... If a backup was successful, ... If that file contains the string '100.00', ... log file, as well as a confirmation such as 'Backup likely successful'. ...
      (microsoft.public.windows.server.scripting)
    • Re: Enterprise Manager Newbie Question
      ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
      (microsoft.public.sqlserver.tools)
    • Re: xcopy and vbscript
      ... It takes about 5-6 minutes to backup approximately ... A copy of the script is below for reference. ... ObjShell.Popup strMessage, 5, "Backup Complete", OK_Button ... Dim sSrc, sDest ' as string ...
      (microsoft.public.scripting.vbscript)
    • [OT] mondoarchive via cron - how do you know if it completed correctly?
      ... I've been using mondoarchive for awhile now for interactive backup to CD's. ... We put in a tape drive and I set it up to backup to tape every night by ... writing a very simple script and putting it in /etc/cron.daily (the script ... The problem is that I get a 6k log file each morning ...
      (RedHat)