[ Príspevkov: 13 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
NapísalOffline : 18.09.2020 13:12 | CRON screensaver

caute,

prosim vas viete mi niekto poradit ako rozchodit cron job aby sa mi v urcitom case aktivoval setric obrazovky a v urcitom case deaktivoval? Skusam to cez

Kód:
crontab -e


tam mam:

Kód:
00 6 * * 1-5 xset dpms force on
00 16 * * 1-5 xset dpms force off


ale ani za .... mi to nefunguje. Xscreensaver mam...ale ak dam do cronu pre test reboot alebo mkdir tak funguje ale screensaver vobec nic.

Prosim o pomoc.

Dik moc

P.S.: chcem to rozbehnut na malinke


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 19.09.2020 11:31 | CRON screensaver

Osobne sa domnievam ze to bude suvisiet s userom pod ktorym bezi xorg vs cron (co by mal byt root). Alebo teda ze cron nevie nad ktorym xorgom ma spustat screensaver.


Naposledy upravil void dňa 21.09.2020 12:51, celkovo upravené 1

_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 21.09.2020 12:44 | CRON screensaver

mozes ma trosku viac usmernit som zaciatocnik v tomto pripadne nejaky manual poslat? Trapim sa stym uz hodnu dobu a stale nic.

Dakujem


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 21.09.2020 13:29 | CRON screensaver

Nuz, je to trochu tazie. Nakolko nemam ziadnbe info o tvojom systeme a pod, tak len hadam, ale chybove hlasky sa loguju do /var/log/.

skus mi teda dat vystup z
Kód:
grep CRON /var/log/syslog


to mozno zodpovie co ma cron za problem. Pripadne skus aj s "cron" miesto "CRON" ak to velkym nic nenapise.


_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 21.09.2020 13:53 | CRON screensaver

Kód:
Sep 21 08:17:01 km CRON[1392]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 08:45:58 km crontab[1520]: (root) BEGIN EDIT (root)
Sep 21 08:46:38 km crontab[1520]: (root) REPLACE (root)
Sep 21 08:46:38 km crontab[1520]: (root) END EDIT (root)
Sep 21 08:47:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 08:50:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 09:17:01 km CRON[1655]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 09:53:43 km crontab[1896]: (root) BEGIN EDIT (root)
Sep 21 10:04:28 km crontab[1896]: (root) REPLACE (root)
Sep 21 10:04:28 km crontab[1896]: (root) END EDIT (root)
Sep 21 10:05:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 10:06:02 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 10:08:55 km crontab[1964]: (root) BEGIN EDIT (root)
Sep 21 10:09:03 km crontab[1964]: (root) END EDIT (root)
Sep 21 10:09:23 km crontab[1994]: (root) BEGIN EDIT (root)
Sep 21 10:10:14 km crontab[1994]: (root) REPLACE (root)
Sep 21 10:10:14 km crontab[1994]: (root) END EDIT (root)
Sep 21 10:10:20 km crontab[2018]: (root) BEGIN EDIT (root)
Sep 21 10:10:31 km crontab[2018]: (root) REPLACE (root)
Sep 21 10:10:31 km crontab[2018]: (root) END EDIT (root)
Sep 21 10:11:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 10:12:01 km CRON[2040]: (root) CMD (sudo bash -x /home/pi/Desktop/cronjobs.sh)
Sep 21 10:12:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 10:12:41 km dbus-daemon[644]: [session uid=1000 pid=644] Activating service name='ca.desrt.dconf' requested by ':1.22' (uid=1000 pid=2066 comm="mousepad /home/pi/Desktop/cronjobs.sh ")
Sep 21 10:17:01 km CRON[2095]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 11:17:01 km CRON[2362]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 11:25:05 km crontab[2467]: (root) BEGIN EDIT (root)
Sep 21 11:46:31 km crontab[2467]: (root) REPLACE (root)
Sep 21 11:46:31 km crontab[2467]: (root) END EDIT (root)
Sep 21 11:47:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 11:49:01 km CRON[2548]: (root) CMD (sudo /home/pi/cronjobs.sh)
Sep 21 11:49:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 11:51:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:02:14 km crontab[2612]: (root) BEGIN EDIT (root)
Sep 21 12:02:41 km crontab[2612]: (root) REPLACE (root)
Sep 21 12:02:41 km crontab[2612]: (root) END EDIT (root)
Sep 21 12:03:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 12:04:02 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:05:58 km crontab[2708]: (root) BEGIN EDIT (root)
Sep 21 12:06:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:06:40 km crontab[2708]: (root) REPLACE (root)
Sep 21 12:06:40 km crontab[2708]: (root) END EDIT (root)
Sep 21 12:07:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 12:10:01 km CRON[2774]: (root) CMD (sudo bash -x /home/pi/cronjobs.sh)
Sep 21 12:10:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:15:01 km CRON[2806]: (root) CMD (sudo bash -x /home/pi/cronjobs.sh)
Sep 21 12:15:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:17:01 km CRON[2831]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 12:20:02 km CRON[2859]: (root) CMD (sudo bash -x /home/pi/cronjobs.sh)
Sep 21 12:20:02 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:25:01 km CRON[2905]: (root) CMD (sudo bash -x /home/pi/cronjobs.sh)
Sep 21 12:25:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:27:15 km crontab[2987]: (root) BEGIN EDIT (root)
Sep 21 12:28:09 km crontab[2987]: (root) REPLACE (root)
Sep 21 12:28:09 km crontab[2987]: (root) END EDIT (root)
Sep 21 12:28:14 km crontab[3010]: (root) BEGIN EDIT (root)
Sep 21 12:28:34 km crontab[3010]: (root) REPLACE (root)
Sep 21 12:28:34 km crontab[3010]: (root) END EDIT (root)
Sep 21 12:29:01 km cron[385]: (root) RELOAD (crontabs/root)
Sep 21 12:30:01 km CRON[3039]: (root) CMD (sudo -u pi /home/pi/cronjobs.sh)
Sep 21 12:30:01 km cron[385]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 12:36:29 km crontab[3091]: (root) BEGIN EDIT (root)
Sep 21 12:36:47 km crontab[3091]: (root) REPLACE (root)
Sep 21 12:36:47 km crontab[3091]: (root) END EDIT (root)
Sep 21 12:36:58 km systemd[1]: cron.service: Main process exited, code=killed, status=15/TERM
Sep 21 12:36:58 km systemd[1]: cron.service: Succeeded.
Sep 21 12:36:58 km cron[3121]: (CRON) INFO (pidfile fd = 3)
Sep 21 12:36:58 km cron[3121]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 12:37:04 km crontab[3147]: (root) LIST (root)
Sep 21 12:39:01 km cron[3121]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 21 13:17:01 km CRON[3364]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 21.09.2020 15:43 | CRON screensaver

Ak ale dobre vidim... tak ten skript nikdy nezbehol. Chces to pustat o 6 a o 16, hej?
Ale dal si mi log medzi 8-13. Skus si to nasimulovat a potom sem dat log.
Predpokladam ale stale ze to bud nebude vediet pod akym uzivatelom bez xorg, alebo nebude vediet najst display ktory ma ovladat.


_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 22.09.2020 13:40 | CRON screensaver

Kód:
Sep 21 15:05:06 km cron[5216]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 15:06:01 km CRON[5277]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:06:01 km CRON[5276]: (root) CMD (sudo -u pi /uesr/bin/xset dpms force off)
Sep 21 15:06:01 km CRON[5268]: (root) MAIL (mailed 40 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:06:01 km CRON[5269]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:07:01 km CRON[5355]: (root) CMD (sudo -u pi /uesr/bin/xset dpms force off)
Sep 21 15:07:01 km CRON[5356]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:07:01 km CRON[5346]: (root) MAIL (mailed 40 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:07:01 km CRON[5347]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:07:04 km cron[5392]: (CRON) INFO (pidfile fd = 3)
Sep 21 15:07:04 km cron[5392]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 15:07:31 km cron[5454]: (CRON) INFO (pidfile fd = 3)
Sep 21 15:07:31 km cron[5454]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 15:08:02 km CRON[5493]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:08:02 km CRON[5489]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:08:03 km CRON[5510]: (root) CMD (sudo -u pi /usr/bin/xset dpms force off)
Sep 21 15:08:03 km CRON[5488]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:09:01 km CRON[5536]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:09:01 km CRON[5537]: (root) CMD (sudo -u pi /usr/bin/xset dpms force off)
Sep 21 15:09:01 km CRON[5529]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:09:01 km CRON[5528]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:10:01 km CRON[5604]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:10:01 km CRON[5605]: (root) CMD (sudo -u pi /usr/bin/xset dpms force off)
Sep 21 15:10:01 km CRON[5596]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:10:01 km CRON[5597]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:11:01 km CRON[5656]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:11:01 km CRON[5652]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:12:02 km CRON[5673]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:12:02 km CRON[5669]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:13:01 km CRON[5690]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:13:01 km CRON[5686]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:14:01 km CRON[5723]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:14:01 km CRON[5719]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:15:01 km CRON[5979]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:15:01 km CRON[5975]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:16:01 km CRON[6004]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:16:02 km CRON[6000]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:17:01 km CRON[6032]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 21 15:17:01 km CRON[6033]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:17:01 km CRON[6025]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:18:01 km CRON[6097]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:18:01 km CRON[6093]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:19:01 km CRON[6119]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:19:01 km CRON[6115]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:20:01 km CRON[6141]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:20:02 km CRON[6137]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:21:01 km CRON[6160]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:21:01 km CRON[6156]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:22:01 km CRON[6177]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:22:01 km CRON[6173]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:23:01 km CRON[6201]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:23:01 km CRON[6197]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:24:01 km CRON[6219]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:24:01 km CRON[6215]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:25:02 km CRON[6251]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:25:02 km CRON[6246]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:26:01 km CRON[6332]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:26:01 km CRON[6328]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:27:01 km CRON[6389]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:27:01 km CRON[6385]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:28:01 km CRON[6411]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:28:01 km CRON[6412]: (root) CMD (sudo -u root krusader)
Sep 21 15:28:01 km CRON[6403]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:28:02 km CRON[6404]: (root) MAIL (mailed 171 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:29:01 km CRON[6444]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:29:01 km CRON[6440]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:30:01 km CRON[6465]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:30:01 km CRON[6461]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:31:02 km CRON[6485]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:31:02 km CRON[6481]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:32:01 km CRON[6502]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:32:01 km CRON[6498]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:33:01 km CRON[6521]: (root) CMD (sudo -u root /usr/bin/xset dpms force off)
Sep 21 15:33:01 km CRON[6517]: (root) MAIL (mailed 42 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:35:01 km CRON[6578]: (root) CMD (sudo -u root krusader)
Sep 21 15:35:02 km CRON[6574]: (root) MAIL (mailed 171 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:41:01 km CRON[6733]: (root) CMD (sudo -u root krusader)
Sep 21 15:41:01 km CRON[6729]: (root) MAIL (mailed 171 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:44:51 km cron[6873]: (CRON) INFO (pidfile fd = 3)
Sep 21 15:44:51 km cron[6873]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 15:46:01 km CRON[6914]: (root) CMD (sudo -u root krusader)
Sep 21 15:46:01 km CRON[6910]: (root) MAIL (mailed 171 bytes of output but got status 0x004b from MTA#012)
Sep 21 15:47:50 km cron[6991]: (CRON) INFO (pidfile fd = 3)
Sep 21 15:47:50 km cron[6991]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 21 15:50:02 km CRON[7021]: (root) CMD (sudo -u root xset dpms force off)
Sep 21 15:50:02 km CRON[7017]: (root) MAIL (mailed 33 bytes of output but got status 0x004b from MTA#012)

na 15:50 som mal simulaciu vypnutia


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 22.09.2020 15:01 | CRON screensaver

ked to spravis manualne, zbehne to?
Teda nie ze to zavolas cez cron, ale z konzoly? Ako aky uzivatel si prihlaseny? Root velmi casto nema pod sebou beziaci xorg, mas tam aj inych userov? Skus sem hodit cely log medzi 15:50 a 15:51.


_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 22.09.2020 15:16 | CRON screensaver

ak to dam cez konzolu funguje mi to. Som prihlaseny ako uzivatel: pi. Vyplulo mi iba toto co som daval vyssie.


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 22.09.2020 17:10 | CRON screensaver

Tak xorg nebezi pod root ale pod pi. (Normalne)

Kód:
sudo -u root xset dpms force off

Takto to pustas, hej? Lebo podla tohto to pustas pod root-om a podla toho co pises xorg bezi pod userom pi.


_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 23.09.2020 14:08 | CRON screensaver

skusim som to prepisat na

Kód:
sudo -u pi xset dpms force off


a tu je log stale mi nefunguje ale skusim ist nastudovat to xorg

Kód:
Sep 23 00:16:01 km CRON[2843]: (pi) CMD (xset dpms force off)
Sep 23 00:16:01 km CRON[2839]: (pi) MAIL (mailed 33 bytes of output but got status 0x004b from MTA#012)
Sep 23 00:17:01 km CRON[2863]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 01:17:01 km CRON[3005]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 02:17:02 km CRON[3132]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 03:17:01 km CRON[3263]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 04:17:01 km CRON[3399]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 05:17:01 km CRON[3537]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 05:58:01 km CRON[3632]: (pi) CMD (xset dpms force on)
Sep 23 05:58:01 km CRON[3628]: (pi) MAIL (mailed 33 bytes of output but got status 0x004b from MTA#012)
Sep 23 06:17:01 km CRON[3678]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 06:25:01 km CRON[3705]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Sep 23 07:17:01 km CRON[3925]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 08:17:01 km CRON[4060]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 09:17:02 km CRON[4193]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 10:17:01 km CRON[4336]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 11:17:01 km CRON[4471]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 12:17:01 km CRON[4614]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 13:17:01 km CRON[4804]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 23 13:54:45 km cron[4944]: (CRON) INFO (pidfile fd = 3)
Sep 23 13:54:45 km cron[4944]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Sep 23 13:57:01 km CRON[4973]: (root) CMD (sudo -u pi xset dpms force off)
Sep 23 13:57:02 km CRON[4969]: (root) MAIL (mailed 33 bytes of output but got status 0x004b from MTA#012)


este ak dam status cron-u tak toto (neviem ci pomoze)

Kód:
sudo /etc/init.d/cron status
● cron.service - Regular background program processing daemon
   Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-09-23 13:54:45 CEST; 27min ago
     Docs: man:cron(8)
 Main PID: 4944 (cron)
    Tasks: 1 (limit: 2065)
   CGroup: /system.slice/cron.service
           └─4944 /usr/sbin/cron -f

Sep 23 14:17:01 km CRON[5110]: pam_unix(cron:session): session closed for user root
Sep 23 14:19:01 km cron[4944]: (root) RELOAD (crontabs/root)
Sep 23 14:21:01 km CRON[5287]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 23 14:21:01 km CRON[5291]: (root) CMD (sudo -u pi xset dpms force off)
Sep 23 14:21:01 km sudo[5292]:     root : TTY=unknown ; PWD=/root ; USER=pi ; COMMAND=/usr/bin/xset dpms force off
Sep 23 14:21:01 km sudo[5292]: pam_unix(sudo:session): session opened for user pi by (uid=0)
Sep 23 14:21:01 km sudo[5292]: pam_unix(sudo:session): session closed for user pi
Sep 23 14:21:01 km cron[4944]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Sep 23 14:21:01 km CRON[5287]: (root) MAIL (mailed 33 bytes of output but got status 0x004b from MTA
                               )
Sep 23 14:21:01 km CRON[5287]: pam_unix(cron:session): session closed for user root


Offline

Skúsený užívateľ
Skúsený užívateľ
CRON screensaver

Registrovaný: 19.03.07
Prihlásený: 21.10.20
Príspevky: 6891
Témy: 84 | 84
Bydlisko: BA
NapísalOffline : 24.09.2020 13:43 | CRON screensaver

Skus to prosim ta pustit manualne, ci to ide. Najprv cez to co som posielal v poslednej sprave. (sudo -u root .... ) A ak nepojde hod sem co ti konzola odpovedala a potom to skus manualne cez ten druhy prikaz na ktory si to skusil prepisat a znovu sem hod vypis z konzoly ak to nepojde.


_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 8GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Notebook: MS Surface 2017 i5/8GB/128GB &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 14.05.13
Prihlásený: 16.10.20
Príspevky: 110
Témy: 39 | 39
Napísal autor témyOffline : 24.09.2020 16:13 | CRON screensaver

manualne ak to spustim tak ci tak funguje to len cez ten cron nereaguje.

Ale docasne som to vyriesil inak (nechcel som vypinat signal HDMI ale zatial to musi byt takto cas ma tlacil). Docasne riesenie je tento prikaz a funguje aj cez cron

Kód:
0 6 * * 1-5 /usr/bin/vcgencmd display_power 1
30 15 * * 1-5 /usr/bin/vcgencmd display_power 0


Ale chcem to urobit cez screensaver ak by niekto potreboval sa aj mimo casu zapnutia pozriet na monitor.


 [ Príspevkov: 13 ] 


CRON screensaver



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

Fish Screensaver

v Ostatné programy

2

476

09.03.2009 21:24

SMITH

V tomto fóre nie sú ďalšie neprečítané témy.

Exe ako screensaver

v Ostatné programy

1

382

15.03.2009 18:10

Fico

V tomto fóre nie sú ďalšie neprečítané témy.

Windows 10 video screensaver

v Operačné systémy Microsoft

2

191

08.04.2019 12:28

bepetko

V tomto fóre nie sú ďalšie neprečítané témy.

cron

v PHP, ASP

8

559

22.07.2009 19:38

Ďuri

V tomto fóre nie sú ďalšie neprečítané témy.

Cron

v PHP, ASP

23

747

07.08.2011 11:51

juho

V tomto fóre nie sú ďalšie neprečítané témy.

Cron

v Ostatné

8

1066

01.08.2009 20:53

mokus

V tomto fóre nie sú ďalšie neprečítané témy.

Cpanel - Cron?

v Ostatné

0

336

18.01.2010 15:05

d0.0b

V tomto fóre nie sú ďalšie neprečítané témy.

cron help

v PHP, ASP

1

392

03.08.2009 8:53

Snacker

V tomto fóre nie sú ďalšie neprečítané témy.

Cron - zaloha suborov

v PHP, ASP

0

684

02.01.2007 21:28

SonnY

V tomto fóre nie sú ďalšie neprečítané témy.

Kod na CRON

v Operačné systémy Unix a Linux

4

273

26.12.2011 13:05

gamelaster

V tomto fóre nie sú ďalšie neprečítané témy.

Cron nic nerobi

v Operačné systémy Unix a Linux

10

534

05.05.2011 12:37

Devil_SK

V tomto fóre nie sú ďalšie neprečítané témy.

cron mazanie obrazkov

v PHP, ASP

1

275

04.02.2009 12:26

stenley

V tomto fóre nie sú ďalšie neprečítané témy.

cron - kazdu hodinu

v PHP, ASP

1

490

12.04.2007 12:20

itsgoingd

V tomto fóre nie sú ďalšie neprečítané témy.

PHP a cron

v PHP, ASP

3

264

05.09.2017 6:57

arno

V tomto fóre nie sú ďalšie neprečítané témy.

Cron a PHP

v PHP, ASP

4

488

09.04.2010 12:40

ShepDog

V tomto fóre nie sú ďalšie neprečítané témy.

cron na Windows XP

v PHP, ASP

3

565

09.01.2011 20:02

coldak



© 2005 - 2020 PCforum, edited by JanoF