The Troubles that is a part of fun :)
Posted on 26th March 2006 by TaggySometimes Linux screws u up and getting out of it is real fun,provided ur willing to see outputs u dont want to and all night sleep off .
ha ha ! yeah thats what i did last night.And all i was trying to do was to watch a movie in linux :)
It was FC5 full installation and it still didnt have a mediaplayer.So i had downloaded all the VLC XINE WINE mplayer , mpg123 mpg321 and 2 more packages.I was dead sure one of these was going to install and i was going to watch some movies.
And also yesterday we tried a small hack at expect and i was trying to write a script that could automatically login in to a server transfer files through ftp and logout by itself.
And we tried shell script but interactive mode was impossible hence someone said EXPECT was good ! so we tried a little hack.
and the code read like this
#!/usr/bin/expect -f
spawn ftp $remote_server
expect “username:”
send “$my_user_id\r”
expect “password:”
send “$my_password\r”
expect “ftp>”
send “bin\r”
expect “ftp>”
send “prompt\r”
expect “ftp>”
send “mget *\r”
expect “ftp>”
.
send “bye\r”
expect eof
and when finished jus execute it by bash$ expect -f filename
and its all done :) .
The time was 2Am and i sat down to install mediaplayer and i relaised all of them went down :(.Then i tried putting in wine and execting and it still wasnt playing. Then i realised it is possible to simply include the media files to a plugin manager .
and the time now was :) 5am hmm what do i do now.nothin! jus shut down the pc.
taggy –
taggy.
Yes expect does provide a good option for interactive shell ,butthere is a huge security lapse that occurs when u transact acrosse different Network families.I have sent u a mail on that as here people could read the vulnerability.
Are you the same guy who is going to do a presentation for NOVELL in the OooConf at mumbai this year?

Iam Theyagarajan S ( 'taggy') . to know more ,head out to



