From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1b67a2d5f4ff58de X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-10-25 19:03:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-west.rr.com!cyclone.kc.rr.com!news.kc.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3DB9F717.689CD722@ChironComputing.Com> From: ScriptOmatic Reply-To: ScriptOmatic@OpenSysMon.Com X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-6mdk i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Backup script: output redirection References: <6445524b.0210250851.20765dd3@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 26 Oct 2002 02:03:39 GMT NNTP-Posting-Host: 204.210.18.244 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1035597819 204.210.18.244 (Fri, 25 Oct 2002 19:03:39 PDT) NNTP-Posting-Date: Fri, 25 Oct 2002 19:03:39 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.unix.tru64:8968 Dub wrote: > > Hi, > > This is a very simple question, it deals more with shell programming > than with Tru64. Anyway, I'm sure some of you have a working variant. > > I have a script with many vdump command (backup of all filesystems). > > backup.sh: > vdump ... > vdump ... > > I'd like to get copy of the output (actually file list) in one file, > named list.$DATE (I know how to get date in a variable). > > Many thanks in advance for sharing a compact nice variant! > > BR, > Dub If I understand what you want ... backup.sh: #! /bin/sh LIST=list.$DATE; # you got that part you say ( vdump ... vdump ... ) > ${LIST} 2>&1 OR TO HAVE BOTH USE tee ( .... same stuff ) 2>&1 | tee [-a] $LIST # -a for append, probably you know, eh? -- http://ftp.opensysmon.com is a shell script archive site with an open source system monitoring and network monitoring software package. Many platforms are supplied already compiled.