|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Automating script
Hi ,
I want to write a unix script which can automate a process something given below : --------------------------- unix prompt# lh console configurator > getObject Resource "clarify-eu" > clarify-eu.xml configurator > quit # ----------------------------- Logic here is that after i give " lh console" command it goes into " configurator prompt mode and then i need to give the getObject command. Now the problem is I dont know how to transfer the control of script to configurator mode and how to make it expect the command at that propmt and run that command. this process is same as what we do in cases of databases that is once we give " sqlplus " command we enter into database command and prompt and then we use database commands there. Please can somebody help in this Thanks, krishan |
|
#2
|
|||
|
|||
|
Quote:
do you know 'here-documents' ? /bin/xxxx <<END aaaa bbbb cccc END |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Automating script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|