Hi,
Regarding your first question, another way to return variables (one or several) from validation2.sh to validation1.sh is to use the source command, as follows:
In validation2.sh write, for example:
....
export retvar1="return value 1"
retvar2=1234
export retvar2
....
and in validation1.sh call validation2 as follows:
source /path/to/validation2/valid
T
Regards
Main Topics
Browse All Topics





by: TintinPosted on 2009-10-24 at 02:23:01ID: 25651410
1. return-value=`/path/to/val idation2.s h`
2. echo $var | awk -F. '{print $(NF)'