Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 15th, 2003, 09:27 AM
mehargags mehargags is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 mehargags User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mehargags
automatig a prgm using "Expect"

I'll be greatful if Any of u Scriptor's there can help me out automating A program that i need to run on every start up. Its called 24. I must tell u the Exact thing i do. I have copied the executable to /usr/bin.
at console i do this EXACTLY to make it login:-
# 24 -u GaganPaul (then press enter)
password: (asks password, put "cute" i.e. my passwd, enter)
it then logs in & to check i ping yahoo.com. if ping is success i am logged into my gateway. Can u write me a Single file, doesnt need to have args as i can hardcode my username & pass(no security issues here) & just call it in the rc.d to autorun at start up

I heard "Expect"(a tcl application) can do that user intake kionda thing along witha combination of a "send" command.
My program file is available at Sourceforge.net here http://sourceforge.net/projects/cyberoam

Reply With Quote
  #2  
Old June 15th, 2003, 07:57 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: automatig a prgm using

I wanted to do something similar but automate my https login information automatically. I have never had time to dive into this yet. Check out the news groups for some info here http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=ssl+expect+script&sa=N&tab=wg

Good luck

Reply With Quote
  #3  
Old July 23rd, 2003, 01:55 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: automatig a prgm using

try autoexpect. It comes with the expect distribution. you simply type 'autoexpect', and it'll automatically record what you type, then type 'control-D' to quit recording.

You don't specifically state what kind of a return you are looking for, but, chances are, you'd need to capture the exit status of ping to know if it was successful or not, and act accordingly. Most pings exit 0 when the host responded, 1 if not. You'd probably have to delve into TCL to figure out how to do this, though.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > automatig a prgm using "Expect"


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