Hi All,
I need to run an infinite loop.
requirement below:
function1 --> creates a file file1
function2 ---> need to call if the file creates
i am running these both function via a script --> script.sh
i need to run the function1 first and if the file file1 creates then need to run the function2 and if file1 not created wait for 1min and again start the process i.e call function1 and if this time creates the file call function2. Wait till function 2 returns something. Irrespective of return value of function2 ( may be failed or succeed ) need to start the process again (i.e. function1 and file check and call function2) .
Please help me if its possible in unix scripting. Also ask me if need any more details.
Thanks,
Satya