Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2014, 10:35 PM   #46
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,191
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I might have missed some of the points here but I've just tested here (albeit with one caveat; I was doing it WITH a user logged on to the PC; however, I was NOT seeing the calibre icon on MY system tray).

I scheduled a news download in calibre for 10:30 PM.
I stopped calibre.
I created TWO tasks
Code:
Name: Test-Calibre
When running the task use the following user account: Peter-W7\Peter
Run whether user is logged on or not
Triggers: Daily @ 10:15 pm
Actions: 
Start a program "C:\Program Files\Calibre2\calibre.exe" 
Arguments: --start-in-tray
Settings:
Allow task to be run on demand
If the task is already running then Do not start a new instance
and on saving the task supplied MY Windows password

Code:
Name: Test-Stop-Calibre
When running the task use the following user account: Peter-W7\Peter
Run whether user is logged on or not
Triggers: Daily @ 10:30 pm
Actions: 
Start a program "C:\Program Files\Calibre2\calibre.exe" 
Arguments:--shutdown-running-calibre
Settings:
Allow task to be run on demand
If the task is already running then Do not start a new instance
and on saving the task supplied MY Windows password

Monitoring via pslist -t initially I see a calibre process running under a taskeng, then a calibre-parallel under the calibre.

Monitoring my calibredb directory I see a new book being added under the calibre author; for a period of time after the download completes both calibre and calibre-parallel are still present.

Eventually a second instance of calibre starts (the second job) and then both instances of calibre terminate.
PeterT is offline   Reply With Quote
Old 05-21-2014, 10:45 PM   #47
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@JayKindle: your problems are almost certainly related to your windows configuration. Most likely your tasks are running under different user accounts, which is why things aren't working. --shutdown-running-calibre will only work if it is run in the same user account as the other instance of calibre. And note that just because you only created a single user account does not mean there dont exist other user accounts on the system. Modern OSes typically have multiple accounts in which to run background services, for privilege sepaaration and security.

And also note that calibre has no memory leaks when you leave it running. There was a memory leak a while ago, that was fixed.
kovidgoyal is offline   Reply With Quote
Old 05-22-2014, 02:57 AM   #48
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,592
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@JayKindle - get Process Explorer http://technet.microsoft.com/en-us/s.../bb896653.aspx Its Task Manager with extra bits like displaying the Process Tree. No install, just unzip and run the .exe

I'm wondering if you're running onto Windows Starter restrictions

BR
BetterRed is offline   Reply With Quote
Old 05-22-2014, 08:58 AM   #49
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,757
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
Quote:
Originally Posted by kovidgoyal View Post
@JayKindle: your problems are almost certainly related to your windows configuration. Most likely your tasks are running under different user accounts, which is why things aren't working. --shutdown-running-calibre will only work if it is run in the same user account as the other instance of calibre. And note that just because you only created a single user account does not mean there dont exist other user accounts on the system. Modern OSes typically have multiple accounts in which to run background services, for privilege sepaaration and security.
And also note that calibre has no memory leaks when you leave it running. There was a memory leak a while ago, that was fixed.
About accounts: Yes there is usually an admin account as well as a hidden account for network access IIRC.
Glorfindel is offline   Reply With Quote
Old 05-22-2014, 10:36 AM   #50
JayKindle
Connoisseur
JayKindle began at the beginning.
 
JayKindle's Avatar
 
Posts: 69
Karma: 10
Join Date: Sep 2011
Device: Kindle Fire HD 8
@PeterT, the reason I found out that any app you schedule doesn't show themselves in the tray is because of this setting: Run whether user is logged on or not -- with this setting, it will run hidden, even if the the hidden box isn't checked. Its purpose is for it to run, even if only the guest or another account is running. Pretty neat trick.

In order for it to appear on the tray or desktop, is for you to just choose: Run only when user is logged on. -- Read more about this here: http://technet.microsoft.com/en-us/l.../cc722152.aspx

Quote:
Originally Posted by PeterT
Eventually a second instance of calibre starts (the second job) and then both instances of calibre terminate.
Did the second schedule also kill the "calibre-parallel.exe" from running?

@kovidgoyal, yes, I've doubled checked this, and when I schedule it, I make sure that my user account name is the one marked for this schedule to run. Since it asks me for my user password to confirm.

Good to know about the memory leak. But I'd still prefer it to run only when I schedule it to turn on/off. Anyway you could add such feature in the near future to it?

Last edited by JayKindle; 05-22-2014 at 10:40 AM.
JayKindle is offline   Reply With Quote
Old 05-22-2014, 05:16 PM   #51
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,592
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
The Taskbar and Notification Area icons cannot be used to show definitively what tasks are running, at best they are tasks with which the user might interactive.

Windows Task Manager is the easiest and quickest way to see what tasks are running - ctrl/shift/escape.

My Taskbar/Notification panel currently show 24 tasks, Task Manager says lists 88.

BR
BetterRed is offline   Reply With Quote
Old 05-25-2014, 03:02 AM   #52
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by eschwartz View Post
Perhaps you could try the command-line version of fetch news? Write a batch file to process each recipe you need.

Fetch News uses the ebook-convert executable, interestingly. You can feed it the .recipe format as the input file.
Quote:
Originally Posted by JayKindle View Post
If that is what I will end up doing, can you help me write up this batch file?
If you're still interested, here's what I used to do for my comics feed:

Code:
@echo on
set logfile="createcomics-bat.log"
echo "Start %date% %time%" >> %logfile%
ebook-convert Gocomics_test.recipe .epub  --output-profile pocketbook_900

set filename="GoComics [%date% %time%]"
echo %filename% 
echo "filename %filename%" >> %logfile%

ebook-meta Gocomics_test.epub -t %filename%

calibredb add -d  Gocomics_test.epub
echo "End %date% %time%" >> %logfile%
This adds the ebook to Calibre with the date and time appended as the title. I just ran it and it added this epub to Calibre - "GoComics [Sun 05/25/2014 2:57:27.64]"
Purple Lady is offline   Reply With Quote
Reply

Tags
calibre, task schedule, windows 7


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Windows 7 and new calibre versions Terisa de morgan Calibre 64 10-20-2012 07:21 PM
Portable Calibre Server on Windows 7 Problem sehlat Calibre 2 05-08-2012 11:47 AM
Windows 7 New Calibre Version problem Pandzilla Calibre 8 10-03-2010 02:15 PM
Run Calibre as Task in Windows 7 nchall114 Calibre 10 04-22-2010 10:29 AM
Problem upgrading calibre on windows XP bazmi Calibre 5 01-05-2009 04:50 PM


All times are GMT -4. The time now is 02:27 PM.


MobileRead.com is a privately owned, operated and funded community.