Batch files
Brought to you by:
tautologist,
uberdork
Does anyone thinkl that it would be a good idea to have
a batch system so that advanced users can write
commandsa to send to the core on certain events
happening. For example when all the downloads
complete a batch file could be started to quit the core.
A dialogue box could be made to have all the events on
and a file assigned to each.
Logged In: YES
user_id=654072
yeah, and lets make it link to the NASA satellite and a
kernel module to free filesystem space when we're running out
Logged In: YES
user_id=583691
I think this is a bit overkill to be honest.
There is little I can imagine that couldn't be done with a normal
independent perl/bash/python script in the background really.
To take your example: You can easily check whether /your/temp
folder has subdirectories and/or foo/1.x.part files left in them. If yes,
there are still downloads going on. If no, not. If no, you can call
ed2k_shutdown (http://ed2k-tools.sf.net) to shut down the core, or
send a command to the GUI via the ~/.ed2k_gui/pipe, like:
echo "ed2k://|command|dumax 0 3|/" > ~/.ed2k_gui/pipe
to lower the upload (for example).
Cheers
-Tim