I made a small script with Job Scheduler in KDE.
If I run the script from terminal it works, but for some reason it doesn't when it's done with crontab.
the script keeps "tamed" the file .xsession-errors that some times reaches a couple of Gb .. no ideea why.
Code: Select all
@reboot [ $(du -k .xsession-errors | awk '{ print $1 }') -gt 20000 ] && tail -10000 /home/$(whoami)/.xsession-errors > /home/$(whoami)/.xsession-errors
Does this have to do with the fact that I'm using init instead of systemd ?
Code: Select all
System: Kernel: 6.1.0-2mx-amd64 [6.1.7-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-2mx-amd64
root=UUID=<filter> ro
Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM
Distro: MX-21.3_KDE_x64 Wildflower April 9 2022 base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Portable System: Dell product: Inspiron 3542 v: N/A serial: <filter> Chassis:
type: 8 serial: <filter>
Mobo: Dell model: 0926J6 v: A16 serial: <filter> UEFI: Dell v: A16 date: 09/02/2020
Battery: ID-1: BAT0 charge: 21.3 Wh (100.0%) condition: 21.3/41.4 Wh (51.4%) volts: 16.8
min: 14.8 model: SANYO DELL 4WY7C45 type: Li-ion serial: <filter> status: Full
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: Discharging
Device-2: hidpp_battery_1 model: Logitech K520 serial: <filter>
charge: 70% (should be ignored) rechargeable: yes status: Discharging
CPU: Info: Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell
family: 6 model-id: 45 (69) stepping: 1 microcode: 26 cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 13567
Speed: 1097 MHz min/max: 800/2700 MHz Core speeds (MHz): 1: 1097 2: 1097 3: 898 4: 1000
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP:
conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300
Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
vendor: Dell driver: N/A alternate: nouveau bus-ID: 08:00.0 chip-ID: 10de:1140
class-ID: 0302
Device-3: Suyin Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-1.5:5
chip-ID: 064e:9205 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org 1.20.14 compositor: kwin_x11 driver: loaded: modesetting
unloaded: fbdev,vesa display-ID: :0 screens: 1
Screen-1: 0 s-res: 1280x720 s-dpi: 96 s-size: 337x190mm (13.3x7.5")
s-diag: 387mm (15.2")
Monitor-1: HDMI-1 res: 1280x720 hz: 60 dpi: 203 size: 160x90mm (6.3x3.5")
diag: 184mm (7.2")
OpenGL: renderer: Mesa Intel HD Graphics 4400 (HSW GT2) v: 4.6 Mesa 22.0.5
compat-v: 3.1 direct render: Yes
Audio: Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel v: kernel
bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
Device-2: Intel 8 Series HD Audio vendor: Dell driver: snd_hda_intel v: kernel
bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
Sound Server-1: ALSA v: k6.1.0-2mx-amd64 running: yes
Sound Server-2: PulseAudio v: 15.0 running: yes
Network: Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter vendor: Dell
driver: ath9k v: kernel modules: wl port: f040 bus-ID: 06:00.0 chip-ID: 168c:0036
class-ID: 0280
IF: wlan0 state: down mac: <filter>
Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169
v: kernel port: e000 bus-ID: 07:00.0 chip-ID: 10ec:8136 class-ID: 0200
IF: eth0 state: down mac: <filter>
Device-3: TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek RTL8153] type: USB
driver: r8152 bus-ID: 2-1.4:4 chip-ID: 2357:0601 class-ID: 0000 serial: <filter>
IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: Qualcomm Atheros AR9462 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-1.6:8 chip-ID: 0cf3:0036 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 2 state: down bt-service: N/A rfk-block:
hardware: no software: no address: <filter>
Info: acl-mtu: 1022:8 sco-mtu: 183:5 link-policy: rswitch hold sniff
link-mode: slave accept
Drives: Local Storage: total: 2.49 TiB used: 1.65 TiB (66.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10JPVX-75JC3T0
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
rpm: 5400 serial: <filter> rev: 1A01 scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: Kingston model: SHSS37A240G size: 223.57 GiB
block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 001B scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Seagate model: Expansion size: 1.36 TiB
block-size: physical: 4096 B logical: 512 B type: N/A serial: <filter> rev: 0502
scheme: GPT
Partition: ID-1: / raw-size: 215.31 GiB size: 210.87 GiB (97.94%) used: 118.54 GiB (56.2%)
fs: ext4 dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 277 KiB (0.1%) fs: vfat
dev: /dev/sdb1 maj-min: 8:17
Swap: Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdb3
maj-min: 8:19
Sensors: System Temperatures: cpu: 46.0 C mobo: 47.0 C
Fan Speeds (RPM): cpu: 0
Repos: Packages: note: see --pkg apt: 2687 lib: 1554 flatpak: 0
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
3: deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
4: deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/dropbox.list
1: deb [arch=i386,amd64] http://linux.dropbox.com/debian/ sid main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ bullseye main non-free
No active apt repos in: /etc/apt/sources.list.d/nala-sources.list
Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt/ xenial main
Active apt repos in: /etc/apt/sources.list.d/steam.list
1: deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
2: deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
No active apt repos in: /etc/apt/sources.list.d/volian-archive-scar-unstable.list
Info: Processes: 225 Uptime: 15m wakeups: 7 Memory: 7.67 GiB used: 2.87 GiB (37.4%)
Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1
alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06
Boot Mode: UEFI