Wednesday, December 27, 2006

shell script using expect for cvs automation

Hello PPL,

I always have to check the cvs status using cvs status command, so I tried to automate these things using expect
Expect is a tool for automating interactive
applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really
makes this stuff trivial. Expect is also useful for testing these same
applications. And by adding Tk, you can also wrap interactive applications in
X11 GUIs.
Home page http://expect.nist.gov/

#!/bin/bash

status=$(expect -c "spawn cvs -z9 -d :ext:blog@cvshostname:/path/cvsroot status
expect {password: { send \"password\r\"; exp_continue }
}
exit
")
echo ""
echo "$cvsstatus" > cvsstatus.txt

###continue your shell script after here####

####exit from script#######

Same you can use with ssh, telnet or ftp.
Let me know if some one have better thing with expect package because I am also new with scripting and expect :(

Thanks

40 comments:

Anonymous said...

I found FLOWER for your WOMEN Deliver flower



sponsored links phentermine

barb michelen said...

Hello I just entered before I have to leave to the airport, it's been very nice to meet you, if you want here is the site I told you about where I type some stuff and make good money (I work from home): here it is

Anonymous said...

What's up to all, since I am in fact eager of reading this web site's
post to be updated on a regular basis. It carries fastidious material.
Take a look at my web site :: online designer outlet store

Anonymous said...

Hello, I enjoy reading all of your post. I like to write a little comment to support you.
Stop by my homepage Credit Score Needed For Home Equity Loan

Anonymous said...

Nice blog here! Also your website loads up fast! What
web host are you using? Can I get your affiliate link to your host?
I wish my web site loaded up as fast as yours lol
My web site :: liste private krankenversicherungen

Anonymous said...

I'm now not sure where you are getting your info, however good topic. I must spend some time finding out much more or figuring out more. Thank you for fantastic information I was in search of this information for my mission.
Feel free to visit my blog - freiwillige krankenversicherung vergleich online

Anonymous said...

Hello there, just became alert to your blog through
Google, and found that it is really informative. I
am going to watch out for brussels. I will appreciate
if you continue this in future. A lot of people will be
benefited from your writing. Cheers!
Look into my site repay student loans

Anonymous said...

Aw, this was a very good post. Finding the time and actual effort to create a good article… but what can I say… I
hesitate a lot and don't manage to get anything done.
Also visit my web blog - How to seo

Anonymous said...

Today, I went to the beach with my kids.
I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear and screamed.
There was a hermit crab inside and it pinched her ear. She never wants to go back!
LoL I know this is completely off topic but I had to tell someone!
Also visit my homepage refinance my home with bad credit

Anonymous said...

My brother recommended I would possibly like this blog.
He was once totally right. This publish truly
made my day. You cann't believe just how so much time I had spent for this info! Thanks!
Feel free to visit my blog post ... canada reseller hosting

Anonymous said...

Its like you read my mind! You appear to know a lot about
this, like you wrote the book in it or something.
I think that you could do with some pics to drive the
message home a little bit, but instead of that, this is
fantastic blog. A great read. I'll certainly be back.
Here is my website cancun all inclusive packages

Anonymous said...

Today, while I was at work, my sister stole my iPad and
tested to see if it can survive a thirty foot drop, just so she can
be a youtube sensation. My apple ipad is now broken and she has 83 views.
I know this is entirely off topic but I had to share it with someone!
Feel free to surf my web blog : texas home equity loans

Anonymous said...

I am truly grateful to the owner of this website who has shared this impressive post at here.
Here is my website successful businesses

Anonymous said...

My partner and I stumbled over here coming from a
different web address and thought I should check things out.
I like what I see so now i'm following you. Look forward to checking out your web page yet again.
My website - clickbabk

Anonymous said...

Hey there! I know this is somewhat off topic but I was
wondering if you knew where I could get a captcha plugin for my comment form?
I'm using the same blog platform as yours and I'm having difficulty finding one?
Thanks a lot!
Also visit my blog loans for bad credit history

Anonymous said...

Currently it appears like Drupal is the preferred blogging platform available
right now. (from what I've read) Is that what you are using on your blog?
Here is my site ... Search Engine Optimization Google

Anonymous said...

Hey there! I know this is kind of off-topic however I had to ask.
Does running a well-established blog like yours take a massive
amount work? I am brand new to writing a blog however I do write in my journal daily.
I'd like to start a blog so I can easily share my experience and thoughts online. Please let me know if you have any suggestions or tips for brand new aspiring bloggers. Appreciate it!
Here is my weblog ... low interest personal loans

Anonymous said...

My brother suggested I may like this website.
He used to be entirely right. This post truly made my day.
You can not consider just how so much time I had spent for this info!
Thank you!

My weblog; Private Krankenversicherung Beitragsbemessungsgrenze
My web page > studentische krankenversicherung vergleich

Anonymous said...

excellent issues altogether, you simply received a new reader.
What would you recommend about your submit that you simply
made a few days in the past? Any certain?
Here is my web-site :: work from home search

Anonymous said...

I read this paragraph completely about the comparison of most up-to-date and preceding technologies, it's awesome article.
Here is my blog post - the seo expert

Anonymous said...

First of all I want to say fantastic blog! I had a quick question in which I'd like to ask if you don't mind.
I was curious to find out how you center yourself and
clear your mind prior to writing. I've had a hard time clearing my thoughts in getting my ideas out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes tend to be lost simply just trying to figure out how to begin. Any recommendations or tips? Kudos!
Also visit my web-site : employment for stay at home moms

Anonymous said...

Very shortly this website will be famous among all blog viewers, due
to it's pleasant articles
My web site - bad credit score

Anonymous said...

Saved as a favorite, I like your site!

Have a look at my web site :: kredite ohne schufa für selbständige

Anonymous said...

Very good information. Lucky me I found your blog
by accident (stumbleupon). I've book marked it for later!

Feel free to visit my homepage - home make money

Anonymous said...

An outstanding share! I have just forwarded this onto a friend who was doing a little research on this.
And he in fact ordered me breakfast simply because
I stumbled upon it for him... lol. So let me reword this.
... Thank YOU for the meal!! But yeah, thanx for spending the
time to discuss this topic here on your web page.

My website: Best Host Reseller

Anonymous said...

If some one wishes expert view about blogging after that i
propose him/her to pay a quick visit this website,
Keep up the pleasant work.

Check out my weblog private krankenversicherung studententarif

Anonymous said...

Hi, i read your blog from time to time and i own a similar one and i was just curious if you get
a lot of spam remarks? If so how do you protect against it, any
plugin or anything you can advise? I get so much lately it's driving me insane so any help is very much appreciated.

Look at my weblog :: studenten krankenversicherung vergleich

Anonymous said...

If you wish for to take a good deal from this paragraph then you
have to apply these methods to your won weblog.

My webpage; wechsel privat in gesetzliche krankenkasse

Anonymous said...

Stunning quest there. What occurred after? Thanks!

Also visit my page: please click the up coming website page

Anonymous said...

Hi there, You have done a great job. I will certainly digg it and
personally recommend to my friends. I am confident they'll be benefited from this site.

My site ... private krankenversicherung für rentner

Anonymous said...

In fact no matter if someone doesn't understand after that its up to other people that they will assist, so here it occurs.

my web blog ... Krankenkassen Zusatzversicherung Vergleich

Anonymous said...

If some one wishes to be updated with most recent technologies afterward he must be pay a quick visit this website and
be up to date every day.

My homepage :: business hosting
My site > http://www.ai-wiki.de/index.php?title=Benutzer:LeonieOtto

Anonymous said...

Yes! Finally someone writes about groingroin.


My homepage :: outlet stores

Anonymous said...

It's awesome to go to see this web page and reading the views of all friends on the topic of this post, while I am also eager of getting knowledge.

Here is my page ... Please Click The Next Document

Anonymous said...

If some one needs to be updated with newest technologies then he must be go to see this site and be up to date
every day.

Review my web page ... vancouver Island Vacation Packages

Anonymous said...

Very good post. I absolutely appreciate this site. Continue the good work!


Also visit my homepage reneey04 - renee Fountain

Anonymous said...

Pretty! This has been an incredibly wonderful post.
Thanks for supplying this information.

Here is my homepage: bad credit loan mortgage refinance

Anonymous said...

I used to be recommended this website by way of my cousin.
I'm no longer sure whether or not this submit is written through him as nobody else realize such particular about my trouble. You're
incredible! Thank you!

Feel free to visit my webpage :: to start a company

Anonymous said...

I am interested in advertising a new social networking site. I have never wrote a Blog before. How should I write this? . And where do I go to write a Blog. This is all new to me and I want to start rocking.. Thanks..
[url=http://bonus365pt.blogspot.com/]bet365 bonus[/url] [url=http://bonuskr.com/]bet365 bonus[/url]
[url=http://ladbrokes-bonus-2013.blogspot.com/]ladbrokes bonus[/url] [url=http://bonus-2013-italy.blogspot.com/]bwin[/url]

Anonymous said...

Grеetіngs! Very useful aԁvice in thiѕ paгticulaг post!
It іs the little changeѕ which will make the largеst changes.
Many thаnκs for sharing!

Ϻy homepagе ... diamondlinks review