I have some problem with my script..
the main problem is, HOW do i call out the second script within a script..
and how do i transfer the values??
THANKS in advance!!
below are the sample of my problems...
#This is the First Script *script1*
#!/bin/sh
tail -100f TESTDATA.file | gawk -F: '\
BEGIN{
portused = 0;
}
{
time=$2
for(i=1; i<=10; i++)
{
#call out second script...
if(time = "test1")
sprintf(cmd,"%s ",cmd, i);
#i don't know if i can doing this or not...
#but i need to transfer the values to the script2
#and need to konw how to call out the script2 ??
}
'Quote:}
#This is the second Script *script2*
#!/bin/sh
shift
(
for i
do
echo $1
done
)