scipting: timeout reached when moving large files

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
looseloop
Posts: 7
Joined: Sat May 21, 2011 11:37 am

scipting: timeout reached when moving large files

Post by looseloop »

Hi,

Slowly moving up in the world. Now i am writing some scripts, but i have run into a problem.

Right now i have written a script to move around a few torrents to clean up in my huge complete folder. I use a loop to go through each torrent and depending on some test parameters it will move the torrent to a certain harddrive. The problem is for big torrents (which is most of them) the command will time out. My script will then move to next iteration of the loop, but since transmission-remote is still busy moving the last torrent, the connection will timeout again.

my question then is, is there anyway to get transmission-remote to return some parameters so the my command wont timeout, or does anyone know an extension to add in bash to make the command not timeout?

thanks!

im using linux. headless archlinux, transmission 2.32 daemon and transmission-remote (cli) to connect to the daemon.
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: scipting: timeout reached when moving large files

Post by gunzip »

if your script normally takes a long time to run, try doing this:

Code: Select all

#!/bin/bash
{
<your script>
} &
Post Reply