[Q] Expect scripting on HC 3.2 - Android Q&A, Help & Troubleshooting

I am trying to write an expect script to log into cisco devices in my lab from my Xoom running tiamat 2.2.2 rom / HC 3.2.
Here is the script
Code:
#!/system/bin/expect
set timeout 20
spawn telnet 10.1.1.1
expect "Username:"
send "username"
expect "Password:"
send "password"
expect "#"
interact
exit
I think the script is right, however i dont think i have expect in system/bin. Is there a way to install it ?
or better still is there an easier way to automate the login process ?
Thanks in advance for helping a noob

i stumbled across an app called inserty , it gets the same job done , just in an easier way than expect script

Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

Hi,
I need the same job done but for a different reason.
Basically it telnets and sends commands into a Cisco device.
Have you managed to port Expect to Android?

Related

[Q] [MOD][ROM][ODIN] RTL+Root (Arabic/Hebrew..) support on your Stock AT&T SGS2

Hi.
Does anybody succeed to install the rom:
[MOD][ROM][ODIN] RTL+Root (Arabic/Hebrew..) support on your Stock AT&T SGS2 from the development section?
I'm pretty sure you'll get a better response by posting this question in the thread itself.
I have no permission to post there yet.
I'm not quite sure what you mean by permission but you can post under that rom. People using it will see it and will be able to give you a hand
This is the message that i get:
yossiw, you do not have permission to access this page. This could be due to one of several reasons:
Please Read: New members (those with fewer than 10 posts) are not permitted to post to development-related forums. The developer forums are intended for experienced users and developers to discuss ways to improve technical aspects related to ROMs and Software. While you may be an expert, we ask ALL users to avoid posting questions about using or installing ROMs and software in the Development Forums. To encourage this new Users can read but not post in these forums.
To ask Questions about developing your device, installing ROMs, software and themes you must go to the Q&A or General Forum.
Remember, your question has very likely been asked already, so please search before posting.
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation
rom/root sgs2 litening rom 6.1
Hi all.I've root my sgs2. I got litening rom 6.1. But how do i custom rom. Which rom is best?. Why is it a pros to have a rooted phone. When i open my samsungapp, it show a blank page: There is no updates it says. How do i change my boot animation. Please help.
Sorry for my bad English. I'm from Denmark
Aluush said:
Hi all.I've root my sgs2. I got litening rom 6.1. But how do i custom rom. Which rom is best?. Why is it a pros to have a rooted phone. When i open my samsungapp, it show a blank page: There is no updates it says. How do i change my boot animation. Please help.
Sorry for my bad English. I'm from Denmark
Click to expand...
Click to collapse
Open a new thread with an appropriate title indicating your issue. Just go with one at a time as I see at least 4 to 5 questions in your one post.
And why to root and boot animation are easily found by searching the forums/Internet. A new thread is not needed for them.
Sent from my páhhōniē

[Q] RUU for HTC flyer for downgrade

im needing to download GB RUU to get back to GB from HC. Ive checked all over and there are no active links.
i am been very particular becuase i am process already. i need the 1.36.1114.32
thanks very much
i have the same problem
i need ruu x 720 x
help.............!!!!!!!
Search on
"RUU_Flyer_hTC_Asia_India_2.27.720.1_Radio_20.3504.30.089BU_3809.07.04.06_M_release_205504_signed"
(presuming this is the ROM you need) and it'll come up on several torrents. I'd upload it for you but I don't have anywhere large enough to upload it to. This is a 3g 32GB international model, but it's the RUU I used to get back on GB.
Hello,
I also invite you to not have a working link for a RUU.
downgrade
First download the RUU for your device from this thread.
when I go to the link is the following:
stefan-17, you do not have permission to access this page. This could be due to one of several reasons:
Please Read: New members (those with fewer than 10 posts) are not permitted to post to development-related forums. The developer forums are Intended for experienced users and developers to discuss ways to improve technical aspects related to ROMs and Software. While you may be an expert, we ask ALL users to avoid posting questions about using or installing ROMs and software in the Development Forums. To encourage this new Users can read but not post in these forums.
To ask Questions about developing your device, installing ROMs, software and themes you must go to the Q & A or General Forum.
Remember, your question has very likely been asked already, so please search before posting.
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Please help ....
I have the same problem. I need a RUU to downgrade from HC to GB and can't read the post.
I have the same problem
i have the same problem
Try here
http://www.androidfiles.org/ruu/?dir=Flyer_View
check out XBMC the future of TV
http://www.xbmchub.com/forums/register.php?referrerid=5757
thank you :laugh:

[Q] Can anyone who rooted Samsung gt 10.1 (3g) (Android 3.2) share your experience?

Hi guys, I am new to this forum. Also, I have been using android for a few weeks now and you may classify me as a noob even though I am very experienced with other platforms such as: Symbian, Windows phone, Mac OS and Windows. I got my first android device which is a samsung galaxy tab 10.1 with 3g which I upgraded to android 3.2.Well, it is a pain in the ass to remove some apps and not to be able to change the clock rate. So I have decided to root it. It is very hard to find one tutorial when it comes to my OS version, and there is no one who shared some thoughts after they have rooted their devices. Will there be any issues? Will I receive further updates? Is the system stable after the root?
So guys and girls, share some experience if you have the same device and the same OS installed.
Welcome aboard!
For rooting start here: http://forum.xda-developers.com/showthread.php?p=15693193. It provides a very easy way to root your tablet. There you will find also some basics about cwm recovery, which you also should flash either by rom manager apk (from play store) or through odin (a windows program used to flash roms to the tab). All info is in the previous thread. You can't overclock just by rooting. Flash a different kernel. Look at pershoot's thread: http://forum.xda-developers.com/showthread.php?p=15022459. Before you proceed search Google as to what rooting basically is (well, root access is like administrator rights in windows). Bear in mind that there is a 99.99% chance that your warranty will be void though! Post here any question you might have after reading! Have fun
Sent from my amazing 10.1 galaxy tab
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

ShaperProbe

We all talk about speed tests and have theories about which one works best. I use ShaperProbe http://www.cc.gatech.edu/~partha/dif...aperprobe.html on the Mac and PC. They make a command line Linux version that is awesome but I tried with my newbish Linux skills and can't figure out how to compile it as a Android Linux tool. I realize it wouldn't be an APK but I'd share my results if I can get it working.
I've tried Android Terminal IDE and a virtual terminal and neither of them have make installed and I'm afraid I've reached my skill limit. I'm not asking anyone to do it for me but some assistance would be awesome.
Questions should be asked in Q&A forums, not Development forums.
Thread moved.

Help witht setbackground or setbackgrounddrawable

I have a view in my app that i need to change the background of, but the problem is when i do
view.setBackgroundDrawable(drawable); it says it is depreciated to use setBackground instead....
when i try to use setBackground(drawable); i get an error saying requires minimum api of 16, but i need my app
to run on android systems lower than that so what do i do?
Ryan
If you want to, just continue to use setBackgroundDrawable(). Its only depreciated, not killed off completely. or you can check THIS out and program in a work around to use either one depending on what os version the user is on.
sweet
i was able ti fix it by doing buttons[4].setBackgroundResource(R.drawable.utilities_flagpost);
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A

Categories

Resources