I have a script called a.sh, contents of which are:
//a.sh:
#!/bin/bash
temp=0
while [ "$temp" -ne 500 ]
do
echo `date`
temp=`echo "$temp+1" | bc`
sleep 1
done
----------------------------------
Another script namedb.sh, contents of which are:
// b.sh:
#!/bin/bash
`a.sh`
exit
----------------------------------
When i execute a.sh separately, i'm able to see the output.. but, when i execute b.sh, i'm not able to see the output on the console.. (i tried a few times - to redirect the output of a.sh - but not being successful).
So, what i need is the redirection, which will enable me to see the output of a.sh's contents when i execute b.sh - on the console.
Thanks, Ravi.