LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-07-2003, 12:24 AM   #1
Elvampira
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
help with writing scripts or batches pls


Hi there,

I have a CVS server I want to connect to to get an update, unfortunatly I dont get to connect because it keeps telling me the connection is refused.

Some other ppl having this problem suggested me to try over and over again.

so I wrote a little 2 line textfile m.txt which I then run using the command "bash m.txt", now I cant get it to press enter for me at the password promt, can anyone tell me whats the command for enter?

thanx alot
 
Old 08-07-2003, 12:28 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,623
Blog Entries: 10

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
You'll probably be looking at using
expect for that ...

man expect
for more details ;)

Cheers,
Tink
 
Old 08-07-2003, 12:31 AM   #3
Elvampira
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
no manual entry for expect

guess I didnt install that package.. what does it do?
 
Old 08-07-2003, 04:35 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,623
Blog Entries: 10

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
It lets you "listen" on the console
and respond programmatically...

http://expect.nist.gov/

Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulties writing shell scripts lostinsyntax Linux - Newbie 2 05-01-2005 03:48 PM
CGI Scripts not executing, pls help john_d13 Linux - General 3 12-22-2004 02:05 PM
Help needed in writing Awk Scripts.. TheDarktrooper Red Hat 1 05-04-2004 06:49 PM
Writing C++ Shell Scripts MasterKin8T Programming 5 09-29-2003 10:43 AM
Writing scripts Rameriez Programming 2 01-07-2003 12:01 AM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration