Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-08-2003, 08:04 AM   #1
Registered: Dec 2003
Location: Singapore
Distribution: Mandrake 9.2
Posts: 128

Rep: Reputation: 15
how to modify codes in a program?

Hi, i sent an email to the developer of aMSN as i wanted to change the time where a dummy package is sent for the 'keepalive' option. The details of his email to me is shown as below.

You can modify the code for the keepalive :
In file protocol.tcl :

line 1014:

proc StartPolling {} {
global config

if {($config(keepalive) == 1) && ($config(connectiontype) == "direct")} {
after cancel "::MSN::PollConnection"
after 60000 "::MSN::PollConnection"
} else {
after cancel "::MSN::PollConnection"

That line after 60000 "::MSN::PollConnection" says that it has to wait 60000ms . You can modify this to any value you wish.


I would like to ask you guys how can i go about modifying the codes as he said?

Your help is greatly appreciated,

-Timberwolf a.k.a Aquila
Old 12-08-2003, 08:21 AM   #2
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Since tcl is a scripting language (no need to compile):

Open the file in your text editor of choice (possibly need to be root). Change that value. Save.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
program to modify iso image shanenin Linux - Software 6 08-26-2006 07:15 AM
program for ir remote codes? fraz Linux - Software 3 10-09-2005 11:38 AM
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 04:21 PM
source codes/tutorial guide for generating packets with flow labels using any program becky_starr Linux - Software 0 01-06-2004 05:42 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 04:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:25 AM.

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