Fredag 23 marts 2007 22:13 kvad Jonathan Wilson:
So I have written a small service script to check the ink level every 60 seconds,
Point 1: Is there a better way to get this information (I'm just asking)?
I have tried to find out if it is possible to have a program, like my ink level check script, run after each print job. After all, ink level only drops when something is actually printed. I have not found any such solution though :o(
and log that to a file in /root/. /root is where I keep all my system setting notes and system scripts, and I considder the ink level log a system wide "thing".
Point 2. The ink level log would be a "a system wide "thing"" (for you), but /root is not. Can you log to a more appropriate place - /var/log/linklog, for example (process logs most often go in /var/log)?
Sure, but I do not want to as long as I do not deem the current solution insecure for my usage situation. :o)
I wish for alle users to be able to see the ink level log.
Understood. But do they need to see everything else in /root?
No, but they are welcome to if they want to. There is nothing secret there. The only thing people might deem "secret" is an ssh key in /root/.ssh -- which is not readable by anyone but root.
Thus the changed permissions of /root. There is nothing "secret" in /root that I am aware of.
Is this system ever on the internet?> Maybe you don't care if the system in question is broken into, but is it connected via network to other machines that you do care about?
No. It is not in a network (apart from the "big" internet). In order to keep crackers from abusing my computer to bother other internet users, I have tried to make sure that no programs I use listen for connections from the internet. I have no internet servers or internet services running. My firewall (SuSEFirewall2) is set up to drop all connection attempts from outside, as well as all packages that are not part of sessions initiated my me. I have even disabled ping reply, which was enabled by default. Port scanning my computer from outside, I am not able to see it at all. I do care about security.
I also wish to keep the number of directories to back up to a minimum -- /root and /home.
I understand. But if that's your reason, why would you be backing up a log file that's being overwritten every 60 seconds anyway?
Because I need to be able to see the latest ink level at all times. When I install a new version of OpenSUSE I need to transfer the ink level log from the old version to the new version. I need to be able to see which cartridge has run dry on the last print job on the old version. And I want to be able to continue the ink level history noted in the log. Best regards :o) Johnny :o) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org