Connecting Tech Pros Worldwide Help | Site Map

Unix Automation

Newbie
 
Join Date: Nov 2008
Posts: 11
#1: Nov 6 '08
Need help for Unix ksh automation.
I have a daily activity whihc need to be done manually every day for which we have 7 to 8 scripts which calls each other to reflect the application and database.
Need to automate this at a specifice time.
The procedure for my work is
1.I run one scripts which initializes the shell and after running this scipts it calls some other scripts and displays a menu on the screen which have few option to enter manually.So i enter option no.1 where in it prompts me for the password.After entering the password other menu gets open wherein it againg prompts me put put some other option according to my daily activity so i enter option no.2 and i enter y to continue and then i enter the name of the script because it prompts me to enter the name of the script which needs to be executed and after this i enter y to continue.This script runs for a while and again it prompt for the user to jsut press enter and after that prompts to put y.
This is the manual work and i need to automate this.
Please provide me the contact number or solution.
Need urgent help.
Best Regards
Anirudh
ashitpro's Avatar
Expert
 
Join Date: Aug 2007
Posts: 389
#2: Nov 6 '08

re: Unix Automation


Hi Anirudh,

Main problem here is automating user inputs...
This can be done by "expect" command....
Rest, you put the main shell script into cron and schedule the job...

Regards,
Ash
Newbie
 
Join Date: Nov 2008
Posts: 11
#3: Nov 6 '08

re: Unix Automation


for example..This is the way i excute manually
The first scripts is
./abc.ksh
then i enter option 10 to go to production and after this a 2nd menu opens.
Where in in enter option 1 then y and then name of script then again i enter in between the processing of the script and again y and so on..

So please write a script and let me know how to do.
It wud be great if u cund provide me contact detail or if tats the problem u can explain the whole stuff.

Regards
Reply