-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Dirk H. Schulz on 3/28/2006 6:32 AM: > Hi folks, > > I am looking for a possiblity to redirect error output into a variable: > > Instead of redirecting to a file > ( e.g. > command 2>>errorlogfile > ) > > I would like to redirect into a variable.
variable=$(command 2>&1) - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEKUGT84KuGfSFAYARAv5pAJkBcJx7Y11iVKnSNkIlhSypL6QCFACfSnhC P8wijxoc/LU7P4jaB9P5FB4= =pnef -----END PGP SIGNATURE----- _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash