Hi Linux Gurus,
I'm trying to find how can i get the $? of the multiple script without using a function..
EXITSTATUS=0
cd directory/TODAY && command2 | command3
EXITSTATUS=`echo $?`
Scenario:
1. if i terminate the whole script --- it will show existstats=130
2. if i terminate command2...