From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622115.tru64-unix-managers.marc@archive.invalid> From: Robert Prizzi Date: Fri, 25 May 2001 12:48:23 +0000 To: tru64-unix-managers Subject: Summary: Re: Command works as root but not as user, HELP X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622115 Thanks to all with such a quick response. ----------------- answer ----------------- The winner was Sheila Hollenbaugh with a corrected version of the command with a response back in 5 minutes. Also thanks to those like Jeff B. that responded with other suggestions. The tested and working answer is: tar cv /data >& tarout & the > redirects standard output the first & redirects standard error the second & puts the whole command in the background. Thanks to all again. Bob P. robert.prizzi@grc.nasa.gov -------------- original question --------------- At 08:28 AM 05/25/2001 -0400, you wrote: >To All, >I have a command that works as root, but not as a regular user. >The command is as follows: > >tar cv /data 2>&1 | tee tarout > >The basis for the script is to tar the /data directory to tape. Take the >standard output and put it to a file. If there is a better way, >suggestions are welcome. I have tried many things, and this one works as >root, but no-one else. >Thanks, >Bob P. >robert.prizzi@grc.nasa.gov