Hi all,
i would like to know how to introduce a delay in the execution of a cmd?
am trying to copy a file which is about 650 mb and then perform some actions on it..
however since its huge i would like to introduce a delay in exection until the process is over
i dont want it to proceed to next statement unless this is over..
if [$? -eq 0] then
<do somethng>
else
<give error>
fi
this is the script that had included after the cp statement but am always directed to the else part of the loop
other thing i tried was to introduce a wait statemnt..
but there is already another process that is to be run in BG ,so when i use $! it refers to that old process(i hope!!).
so is there a way to address many bg process, also anyway to capture the pid of the particular process i need..
Hence i would like to know how to introduce a delay in the script..
This is not a regular script , its a rc script!!!
pls advice accordingly