Dotan Cohen wrote: > I'm scripting a backup solution, the line that does the business looks > like this: > > tar -zcvf - * --exclude-from $EXCLUDES | openssl des3 -salt -k $1 | > dd of=$(hostname)-$(date +%Y%m%d).tbz > > Because of the "v" flag tar writes to stdout the name of each file > copied. How can I get that output redirected to a variable, to use > later in the script? > > Thanks! >
I forgot to ask, in the last post: Why are you using the 'dd' command? I would think you could do: tar ... | openssl ... > $(hostname)-$(date +%Y%m%d).tbz -- Bob McGowan Symantec US Internationalization -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org