Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2023, 05:29 AM   #151
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

If you had waited to 5 minutes past the hour (with the Pi on) then the Pi would have acquired the new WAN IP for freemyip.

If you are sure that the new IP always happens between 1:35 and 1:45 then you can change 5 * * * * to 50 * * * *.
Then the Pi will set freemyip to the nee IP on 1:50.
mariosipad is offline   Reply With Quote
Old 03-06-2023, 06:31 AM   #152
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

First of all I will have another nights trial following your suggestion to wait 5 minutes past the hour
huber70 is offline   Reply With Quote
Advert
Old 03-06-2023, 09:23 PM   #153
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

Unfortunately: it didn't work

IP address again changed at 01:37am - let PC and PI both on. Tried to click a book at 03:20am but failed - even 1. reload of the library page and 2. of the browser does not brought any result.

Guess, I made something wrong at the PI as no /tmp/xxx file is there with the instructions

Tried to reach the library freemyip site from the PI - that also doesn't work, even not after reboot of the PI. Needed to send the token (at the PI) to receive the "ok", than it worked at the PI as well at the PC

Last edited by huber70; 03-06-2023 at 09:41 PM.
huber70 is offline   Reply With Quote
Old 03-07-2023, 07:39 AM   #154
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

I visited the manual (and read it this time). The only way to retry this (that I could think of) is as follows:

crontab -e

replace old line with:

Code:
5 * * * * curl "https://freemyip.com/update?token=xxxxxxxxxxxxxxxxxxxxxxxx&domain=huber70.freemyip.com" >/dev/null 2>&1

Notice the " " before https an after .com!
mariosipad is offline   Reply With Quote
Old 03-07-2023, 08:13 AM   #155
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

thanks, have done it..

I always think, that I'm doing something wrong with the LXTerminal: I changed your code by paste & copy and then have to save the file by "Ctrl + O", I see the file that is created and I see the folder "file:///tmp/crontab.H8sRv9" where two files are:

.crontab (content cryptic characters)
crontab contains:

# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 5 * * * * curl "https://freemyip.com/update?token=exxxxxxx&domain=huber70.freemyip.com" >/dev/null 2>&1

# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command

After I saved the file I exit the LXTerminal "Ctrl + X" and - the folder with the 2 files is away - is that correct? I can't believe this...
huber70 is offline   Reply With Quote
Advert
Old 03-07-2023, 10:34 AM   #156
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

1 - remove the # in front of 5 * * * * curl .........
2 - insert your token at exxxxxxx
3 - change huber70.freemyip.com to your freemyip.com domain name
mariosipad is offline   Reply With Quote
Old 03-07-2023, 10:40 AM   #157
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

ok, but what's about the "saving" question and the "missing" files?
huber70 is offline   Reply With Quote
Old 03-07-2023, 11:14 AM   #158
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

/var/spool/cron/crontabs/
mariosipad is offline   Reply With Quote
Old 03-07-2023, 11:25 AM   #159
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

ok - seems to be empty
Attached Thumbnails
Click image for larger version

Name:	mmm.png
Views:	69
Size:	48.0 KB
ID:	200182  
huber70 is offline   Reply With Quote
Old 03-07-2023, 12:18 PM   #160
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

Did you remove the # ?

Then in terminal:

sudo ls -l /var/spool/cron/crontabs
mariosipad is offline   Reply With Quote
Old 03-07-2023, 12:27 PM   #161
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

Yes, removed the #

In terminal after your command appears:

huber70@raspberrypi:~ $ sudo ls -l /var/spool/cron/crontabs
insgesamt 4
-rw------- 1 huber70 crontab 1222 7. Mär 17:18 huber70
huber70@raspberrypi:~ $

crontabs folder is not accessable, still contains nothing (see pic above)
huber70 is offline   Reply With Quote
Old 03-07-2023, 12:34 PM   #162
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

sudo cat /var/spool/cron/crontabs/huber70

Last edited by mariosipad; 03-07-2023 at 12:46 PM.
mariosipad is offline   Reply With Quote
Old 03-07-2023, 01:20 PM   #163
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

sorry, just this command - what does it tell me?
huber70 is offline   Reply With Quote
Old 03-07-2023, 01:46 PM   #164
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@huber70

It will show you the contents of the file made by crontab -e.
mariosipad is offline   Reply With Quote
Old 03-07-2023, 02:25 PM   #165
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

where is that file?
huber70 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
COPS : Calibre OPDS PHP Server vlad59 Related Tools 1923 04-22-2025 05:33 PM
OPDS in php or populate metadata.db from filesystem skelos Related Tools 0 09-06-2019 11:03 AM
php??? crutledge ePub 13 01-24-2014 06:27 PM
Which PHP version do you have? erayd Workshop 2 10-04-2010 08:02 PM


All times are GMT -4. The time now is 12:10 PM.


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