Code: Select all
336029 Jul 23 17:40:54 pi02 systemd[1]: Starting Cleanup of Temporary Directories...
336030 Jul 23 17:40:55 pi02 systemd[1]: Started Cleanup of Temporary Directories.
336031 Jul 23 18:17:01 pi02 CRON[14511]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
336032 Jul 23 18:20:56 pi02 systemd[1]: Starting Raise network interfaces...
336033 Jul 23 18:20:57 pi02 ifup[21141]: command failed: Too many open files in system (-23)
336034 Jul 23 18:20:57 pi02 ifup[21141]: ifup: failed to bring up wlan1
336035 Jul 23 18:20:57 pi02 ifup[21141]: command failed: No such file or directory (-2)
336036 Jul 23 18:20:57 pi02 ifup[21141]: ifup: failed to bring up wlan2
336037 Jul 23 18:20:57 pi02 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURECode: Select all
pi@pi:~ $ lsof -p 1903
bash: lsof: command not found
pi@pi:~ $ sudo apt-get install lsof
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lsof is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceCode: Select all
1 #!/usr/bin/env bash
16 count=$(ls -1 | wc -l)
23 sudo sh -c "echo $count > /home/pi/RFcount.txt"Code: Select all
1 #!/usr/bin/python
2 import time
3 import datetime
4 import subprocess
5 # For program ancillary to clock
6 import os, sys, shutil
122 if second==25 or second==55:
123 subprocess.call("/home/pi/aboveshellscript.sh")
176 # Display data from another app
177 if second==10 or second==20 or second==40 or second==50:
178 with open("/home/pi/RFcount.txt") as fp:
179 lst=list(fp.readlines())
180 count=lst[len(lst)-1].strip()
181 RFcount=str(count).zfill(4)
182 segment.print_number_str(RFcount)
183 segment.write_display()