
June 15th, 2003, 06:25 AM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Automating 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 URL
|