to clarify, the core is on a server sitting in a closet somewhere. I
control it with the win32 java gui or the linux gtk gui (which is really
basically, something ( standalone app, script, whatever) needs to connect
to the core and authenticate itself. then it needs to issue the dumax x y
command and exit.
if the connection that's made to the ed2k core is a telnet one then I
could cook up something that'll work with expect - autoexpect begs to be
used for this one. alternatively, a simple abstraction of the gui app
might be concocted whose only function would be to connect, authenticate,
change dl rates to specified amount and exit.
While I can handle simple shell scripts, I haven't really started with C.
Would appreciate some help / pointers in this regard.
> On Sunday 27 April 2003 22:33, Aniruddha Shankar wrote:
>> I run a core on a host that has a large amount of other data traffic
during the days and almost none at all during the nights. is there some
way I can set a cron job that will vary the download / upload speeds that
>> the donkey core operates on ?
> Easy case: You have an ed2k-gtk-gui running which is connected to the
> the time the cron jobs run:
> In this case, just make the cron job run a script with something like:
> echo "ed2k://|command|dumax 0 10|/" > /home/joe/.ed2k_gui/pipe
> in it. Adjust the values to whatever you like. Joe is the user under
> name the GUI runs.
> Tough case: the core is not connected to a GUI.
> In which case you could:
> (B1) make the '-a' command line option work again (no idea why I
> unfortunately I have currently more pressing things to fix than that)
> (B2) start the GUI via cron-script with 'auto-connect on start-up'
> options and the default host/port/username/password saved in options,
> few seconds, and then do the above echo thing (and possibly just
cold-bloodedly killing the GUI shortly after that),
> (B3) take the 'ed2k_shutdown' utility from http://ed2k-tools.sf.net and
replace the send_logout() function with the send_command() function (or
whatever it's called) from the gui's send_command.c file (might need a
> of tweaking, but it's only 4 lines of code, so it can't be that much).
> Hope this helps.