automating using shell scripting
I am using Mandrake Linix Official, and I am picking it up rather fast.
I am having some applications which prompt for username, password and then a couple of key press (for yes/no). One such is the vpn client.
As I need to start the program automatically when my system boots, or thro any mouse click, I am in need of a solution to pass the parameters to the program.
For example, I will put my requirement as below.
I have a program which runs as below
---------------------------------
Enter the first number : 2
Enter the second number : 4
Do you want to Add/Subtract/Multiply/Divide: Add
Result : 6
Program Completed.
----------------------------------
I want to automate it fully. (No arguments can be passed to the program)
Regards,
Shyam
|