Opened 8 years ago

Last modified 5 years ago

#8011 assigned Patch

Patch for simple on/off queue scheduler (feature request #1665)

Reported by: Scott Bragg Owned by: Scott Bragg
Priority: normal Component: FileZilla Client
Keywords: Cc: mathias@…, d_the_m101@…
Component version: Operating system type:
Operating system version:

Description

Since I moved from a city to rural satellite Internet which has both peak and off-peak data usage allowances, I've been having to stay up until the off-peak time kicks in to start my filezilla queues (system backups, updates, etc).

I was hoping there would be a process queue schedule feature in Filezilla by now, but since there isn't, I decided to dive into the source and hammer one in.

I've included my patch to the svn revision 4558. It seemed to work on my workstation here which is running Fedora 16.

I normally do work in C, not C++

It's a rather simple on/off schedule mechanism. Go into the Edit menu -> Preferences and look for the new "Queue" page. You can either:

  • set filezilla to start processing the queue on startup (useful to create a queue, exit, and just schedule filezilla to start later with system level scheduler such as at)

and/or

  • enable scheduling (in which case you put a start and end time in the appropriate fields, 24 hour time, so midnight is 00:00)

Then create your queue, and leave filezilla running and the queue should start and stop processing at the specified times.

Filezilla is way more useful selecting specific files and managing the queue than command line clients, but needs a touch of automation (which is what computers are for).

Attachments (1)

queue-scheduler.patch (9.4 KB) - added by Scott Bragg 8 years ago.
Process queue scheduler

Download all attachments as: .zip

Change History (10)

Changed 8 years ago by Scott Bragg

Attachment: queue-scheduler.patch added

Process queue scheduler

comment:1 Changed 8 years ago by plokiju

Hi,

This is exaclty what I need and what was also requested by some other users ... 8 years back ! (http://trac.filezilla-project.org/ticket/1665)

Might look like a dum question but could you detail how to add your patch to Filezilla client ?

comment:2 Changed 8 years ago by Scott Bragg

You need to check out the filezilla source on svn and compile it for your platform according to the instructions found in the Development forum of the Filezilla project.

Which platform are you using?
For Windows, well I don't use Windows often. I'm going to fire up an old laptop and try to compile it for Windows, I will let you know and perhaps provide a download link so you can try it out - will certainly help out with testing this minor patch on other platforms.

For Linux it's pretty straightforward:
svn co https://svn.filezilla-project.org/svn/FileZilla3/trunk filezilla
cd filezilla
patch -p0 < insert-my.patch
./autogen.sh
./configure --with-builtin-tinyxml
make
sudo make install

comment:3 Changed 8 years ago by plokiju

Hi jsbragg,

FIlezilla with your patch would be used on Windows Vista, W2003 server both 32bits and 64bits, W2008 server. Is it required to compile on each platform in order to get adapted versions of the different environments ?

I had a look at the help page (http://wiki.filezilla-project.org/Compiling_FileZilla_3_under_Windows) and indeed, linux makes life easier in this case... Let me know if you can provide a compiled version for windows.

Thanks

comment:4 in reply to:  2 Changed 7 years ago by mike

Operating system version: MAC OS 10.6.8

Can you make this patch for the MAC OS?

Replying to jsbragg:

You need to check out the filezilla source on svn and compile it for your platform according to the instructions found in the Development forum of the Filezilla project.

Which platform are you using?
For Windows, well I don't use Windows often. I'm going to fire up an old laptop and try to compile it for Windows, I will let you know and perhaps provide a download link so you can try it out - will certainly help out with testing this minor patch on other platforms.

For Linux it's pretty straightforward:
svn co https://svn.filezilla-project.org/svn/FileZilla3/trunk filezilla
cd filezilla
patch -p0 < insert-my.patch
./autogen.sh
./configure --with-builtin-tinyxml
make
sudo make install

comment:5 Changed 7 years ago by Scott Bragg

Operating system version: MAC OS 10.6.8
Owner: set to Scott Bragg
Status: newassigned

I do not have a Mac myself but I tried to compile this with a cloud based Mac account I have. Unfortunately I had problems compiling one of the dependencies, wxWidgets on the system due to the fact I have little dev experience on OSX and the version of Snow Leopard installed and could not continue. I will give it another go soon in one of the Mac labs at university to see if I can create a binary there.

In the meantime,since this patch has had no progress on this wiki in over 6 months, and neither have other requests for similar requests, I have forked Filezilla to

http://www.github.com/faulteh/fzsched

since it looks like no other filezilla devs will accept this patch, so I'm exercising my open source option of forking.

comment:6 Changed 7 years ago by Alexander Schuch

Summary: Patch for simple on/off queue scheduler (feature request #1665Patch for simple on/off queue scheduler (feature request #1665)

comment:7 Changed 6 years ago by Mathias Bynens

Cc: mathias@… added

comment:8 Changed 5 years ago by NewWorld

Cc: d_the_m101@… added

comment:9 Changed 5 years ago by NewWorld

I've followed your instructions, but the build fails. The patch applies cleanly on revision 4558, but the build fails because you have not provided the optionspage_queue.cpp and .h files!

The error is:
make[4]: * No rule to make target 'settings/optionspage_queue.cpp', needed by 'settings/filezilla-optionspage_queue.o'. Stop.
make[4]: Leaving directory '/home/danb/abs/filezilla_wx-with-scheduler/svn/filezilla/src/interface
Makefile:2499: recipe for target 'all-recursive' failed

I appreciate you writing this patch very much. Could you please provide the 2 files mentioned?

Note: See TracTickets for help on using tickets.