Originally posted by: nagger
Your question is very vague.
If you mean within one script, how do I run a further script but get the data back in the first script then try something like this example.
In a shell script you can use:
cat /etc/passwd | while read i
do
echo the output was $i
done
Replace "cat /etc/passwd" with your script.
the $i shell variable will be the lines of output from the command or sub script.
If the second script returns just one line
date | read j
echo Data returned was $j
or
k=`date`
echo variable k contains $k
This actually works with multiple lines but its hard to extract just some of the data.
Hope this helps, N
#AIX-Forum