Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

How to start automate commandline process.

by perladdict (Chaplain)
on Apr 25, 2007 at 04:34 UTC ( #611913=perlquestion: print w/replies, xml ) Need Help??
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.
C:\Documents and Settings\patilr> 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
If i type in path C:\Document and setting\usr\>
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.

Replies are listed 'Best First'.
Re: How to start automate commandline process.
by naikonta (Curate) on Apr 25, 2007 at 06:30 UTC
    You may want to check Term::TUI.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: How to start automate commandline process.
by BrowserUk (Pope) on Apr 25, 2007 at 08:21 UTC
      Hi BrowserUk,
      Thanx for your solution,its working fine on unix_OS but it's not working on window's platform.
      I am not sure but i think its the tool compatibility on diff operating system.
      what was the reason why it's not working on win_OS?
        what was the reason why it's not working on win_OS?

        Could be several reasons. A look at the script (per my /msg) would allow me to isolate which one, and save a lot of time.

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re: How to start automate commandline process.
by Anonymous Monk on Apr 25, 2007 at 06:17 UTC
Re: How to start automate commandline process.
by Anonymous Monk on Apr 25, 2007 at 06:26 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://611913]
Approved by planetscape
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-02-21 05:50 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (275 votes). Check out past polls.