tar -cz /usr/fweb/xyz/abc > /usr/fweb/xyz/aa.tar.gz 2> /dev/null
The 2> redirects stderr the same way > redirects stderr. So the above command is telling the shell to send stderr to /dev/null which on most systems, just throws it away.
Put that command in your `` in your script, and see if it works.
In reply to Re: tar: Removing '/' from member names
by Paladin
in thread OT - tar: Removing '/' from member names
by kumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |