Re: [expert] vnstat & cron

2003-07-24 Thread J.C. Woods
Check out your environment for the cron user. Most likely it is different from what your environment is when your run it from a shell. drjung -- J. Craig Woods UNIX Network/System Engineer http://www.trismegistus.net/resume.htm Let him that would move the world, first move himself. -- Socrates B

[expert] vnstat & cron (fixed)

2003-07-23 Thread Colin Jenkins
Hello All, >> Colin Jenkins wrote: >> >>> Hello all, >>> when I run 'vnstat >/var/www/html/usage' from a shell, I get a text >>> file with the correct output. When I run the same >>> as a cron task, it outputs a blank file. Thanks for the feedback. when I added the path, /usr/local/bin/vn

Re: [expert] vnstat & cron

2003-07-23 Thread Brant Fitzsimmons
Brant Fitzsimmons wrote: Colin Jenkins wrote: Hello all, when I run 'vnstat >/var/www/html/usage' from a shell, I get a text file with the correct output. When I run the same as a cron task, it outputs a blank file. any ideas why? Does the file starts with #!/bin/sh so that it is recognized as a

Re: [expert] vnstat & cron

2003-07-23 Thread James Sparenberg
On Wed, 2003-07-23 at 08:17, Brant Fitzsimmons wrote: > Colin Jenkins wrote: > > >Hello all, > >when I run 'vnstat >/var/www/html/usage' from a shell, I get a text > >file with the correct output. When I run the same > >as a cron task, it outputs a blank file. > >any ideas why? A shot here. Doe

Re: [expert] vnstat & cron

2003-07-23 Thread Brant Fitzsimmons
Colin Jenkins wrote: Hello all, when I run 'vnstat >/var/www/html/usage' from a shell, I get a text file with the correct output. When I run the same as a cron task, it outputs a blank file. any ideas why? Does the file starts with #!/bin/sh so that it is recognized as a shell script? Are you s

[expert] vnstat & cron

2003-07-23 Thread Colin Jenkins
Hello all, when I run 'vnstat >/var/www/html/usage' from a shell, I get a text file with the correct output. When I run the same as a cron task, it outputs a blank file. any ideas why? -- Best regards, Colin mailto:[EMAIL PROTECTED] In the beginning the Universe w