µTorrent with Wine under Linux

uTorrent, or µTorrent is a very small and leightweight but full-featured bittorrent client. Unfortunately it's for Windows only. But fortunately it works great in wine.

Here's a little script to let you pass .torrent files comfortably over command line. I've got the same type of script for WordViewer and other software. Hopefully this will sometime soon by handled by wine directly.


WINE="env WINEDEBUG=-all wine"

if [ "$@" ]; then arg="z:`echo $@ | sed -e 's/\//\\\\/g'`"; fi

echo $arg > ~/logs/tmp

if [ "$@" ];
$WINE "$UTORRENT" "$arg" >> /dev/null 2>> /dev/null &
$WINE "$UTORRENT" >> /dev/null 2>> /dev/null &

Wine is called without debugging to save more resources. The argument is converted to a pathname that wine can handle better ("/" are converted to "\"). You probably need to adjust the path where uTorrent is saved.

No comments:

Post a Comment

I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.