Re: How to run 'vnstat' as user?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Oct 20, 2015 at 02:19:35PM +0200, tomas@tuxteam.de wrote:
> On Tue, Oct 20, 2015 at 11:44:41AM +0100, Sharon Kimble wrote:
> > <tomas@tuxteam.de> writes:
>
> [...]
>
> > > Still confused here. What's the content of this "eth0" file?
> > >
> > Its a binary file produced by running "vnstat -u -i eth0" and is the
> > 'database' for vnstat, containing all the historical info that can be
> > outputted when you run the command "vnstat".
>
> Thanks, I thing I got it now. I'll test around a bit, but it'll take me
> some time.
>
> I'll get back to you when I come around to it.
OK. Let's get first the obvious things out of the way:
- what are the file permissions of this ~/cron/lib/eth0 file? What does
(as the "normal" user) ls -l ~/cron/lib/eth0 say?
- you can try to run vnstat under strace like so:
strace -o your.trace.file <your vnstat command>
after this, your.trace.file will contain a log of all system calls
done by vnstat. The failing system call should be localizable near
the end of that log (do post the last ~50-ish lines if in doubt)
HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlYns1QACgkQBcgs9XrR2kbUGgCZATq7ZJkoG7R9LbCLXhySTann
ZOYAnRo0a3OOcY8Nt90Ovue9L9dEhmqW
=eemQ
-----END PGP SIGNATURE-----
Reply to: