I worte a automatin tool in perl which basically executes a program through calling system() with different arguments passed in. This tool will parse the outputs and compile a report.
Under certain circumstances, when a specific argument passed in, this program would post a question like "do you want to proceeds [default Y]?" and wait for a user input. This is by design so there is nothing wrong. But I don't know how to handle this situation in my perl code.
I'd guess fork() might be able to handle this. But my knowledge on fork() is very limilted. Could someone here kindly offer me some help and better yet, with some sample codes?
Many thanks.
Under certain circumstances, when a specific argument passed in, this program would post a question like "do you want to proceeds [default Y]?" and wait for a user input. This is by design so there is nothing wrong. But I don't know how to handle this situation in my perl code.
I'd guess fork() might be able to handle this. But my knowledge on fork() is very limilted. Could someone here kindly offer me some help and better yet, with some sample codes?
Many thanks.