perladdict has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
Here i am trying to write a wrapper function to automate CLI process.
But i am not getting the way how to start, viewmgt is already a tool which will creates views,
for this the user can fallow the fallowing step to create a new view,in these steps are static
fallowing are the steps to fallow to create a view.
it will start showing the option we have to select in order to create the view.
after selecting specific option i have to hit the enter key,then only it goes to next step
.can any one help me out how to start writing the script to automate the above process.
Here i am trying to write a wrapper function to automate CLI process.
But i am not getting the way how to start, viewmgt is already a tool which will creates views,
for this the user can fallow the fallowing step to create a new view,in these steps are static
fallowing are the steps to fallow to create a view.
If i type viewmgt.pl in path C:\Document and setting\usr\>viewmgt.plC:\Documents and Settings\patilr>viewmgt.pl viewmgt -- ClearCase view management Finding views for patilr ... Please pick an action, or a view to start [ 1] [l] LOOK at views of a different user [ 2] [c] CREATE a New View [ 3] [s] SYNCHRONIZE a view from another region [ 4] [d] DELETE (remove) one of the views below [ 5] [q] QUIT (exit from viewmgt) [ 6] patilr__070413_test_view1 [ 7] patilr__070420_test2 Action [1 - 7, letter shortcuts] ==> 2 <hr > CREATE a new view ... Please select an AREA ... [ 1] CCR CCR - Contact Center Reporting [ 2] IVR Interactive Voice Response [ 3] CoreServices Core Services : Source [ 4] CoreSvcRel [** SCM use only **] Core Services : Releases [ 5] Tools Viewtools, Montools & Tools Testing [ 6] BCMRD BCMRD (BCMS Vu) [ 7] OA Operational Analyst, DAT [ 8] PLE PLE (Production Line Engineering) [ 9] Messaging Messaging [ 10] ----- (area MVAP not available) [ 11] ----- EMPTY Slot (here to keep numbers the same) [ 12] IC InterChange (vob1-7 et al) [ 13] CSVendor Core Services : Vendor [ 14] VoiceBrowser Avaya Voice Browser [ p] PREVIOUS Return to PREVIOUS prompt {Set VIEWMGT_AREA to one of the left column to pre-designate an area} Your AREA choice [1 - 14, p] ==> 2 Please select a PROJECT ... [ 1] ivr IVR [main base] [ 2] ivr_ebs_pkgs IVR EBS Packages (Languages) [ 3] ----- (project ivr_crmc not available) [ 4] ----- (project ivr_dialer not available) [ 5] ----- (project ivr_ebs not available) [ 6] ----- (project ivr_ptts_win not available) [ 7] ivr_sv IVR Test Automation [ 8] ivr_vw_unix IVR V@W Unix [ 9] ivr_vw_win IVR V@W Windows [ p] PREVIOUS Return to PREVIOUS prompt {Set VIEWMGT_PROJECT to one of the left column to pre-designate a proj +ect} Your PROJECT choice [1 - 9, p] ==> 9 Please select what TYPE of view ... [ 1] [io] An Individual view off an Official Branch [ 2] [it] An Individual view off a TEAM Branch [ 3] [te] A TEAM view off of an Official Branch [ 4] [ob] A view that works directly on an Official Branch [ 5] [tw] A view that's a TWIN of another view (same config_spec) [ 6] [ex] A view using an EXISTING Branch [ p] Return to PREVIOUS prompt Your VIEW TYPE choice [1 - 6, p, letter shortcuts {default = 1} ] ==> +2
it will start showing the option we have to select in order to create the view.
after selecting specific option i have to hit the enter key,then only it goes to next step
.can any one help me out how to start writing the script to automate the above process.
Back to
Seekers of Perl Wisdom