SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old January 14th, 2005, 12:20 PM
krishsays krishsays is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 krishsays User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 16th, 2005, 05:43 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
Quote:
Originally Posted by krishsays
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


do you know 'here-documents' ?
/bin/xxxx <<END
aaaa
bbbb
cccc
END

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Automating script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway