How does one grab return code?

From: Gavin Segal (gavins@nortelnetworks.com)
Date: Thu Mar 06 2003 - 08:47:34 EST


I have the following command being executed, and I'd like to grab the return
code of the command, and not the return code of the 'tee'.

The command I am using in the script is (using /bin/ksh) :
        $command 2>&1 | tee -a $logfile

I would like the return code of the "$command ".

Any help would be appreciated.

Gavin

Gavin Segal
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:56 EDT