![]() |
#151 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#152 |
Addict
![]() 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 ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#153 |
Addict
![]() 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. |
![]() |
![]() |
![]() |
#154 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#155 |
Addict
![]() 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... |
![]() |
![]() |
Advert | |
|
![]() |
#156 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#157 |
Addict
![]() 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? |
![]() |
![]() |
![]() |
#158 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
/var/spool/cron/crontabs/ |
![]() |
![]() |
![]() |
#159 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
ok - seems to be empty |
![]() |
![]() |
![]() |
#160 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#161 |
Addict
![]() 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) |
![]() |
![]() |
![]() |
#162 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#163 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
sorry, just this command - what does it tell me? |
![]() |
![]() |
![]() |
#164 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#165 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
where is that file? |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |