i have a shell script which is like below
===================
A () {
calls some external commands and gets the output
}
B () {
sends mails using mailx command with output of the function A (which is file produced)
}
main () {
A
B
}
===========
my problem is before the completion of function A, function B is executed . I dont know how much time it will take to complete function A, so i could
not put a sleep time.
any help would be appreciated.
===================
A () {
calls some external commands and gets the output
}
B () {
sends mails using mailx command with output of the function A (which is file produced)
}
main () {
A
B
}
===========
my problem is before the completion of function A, function B is executed . I dont know how much time it will take to complete function A, so i could
not put a sleep time.
any help would be appreciated.