[Ilugc] Cron Job

  • From: rkrajeshkumar87@xxxxxxxxx (Rajesh kumar)
  • Date: Wed, 25 Jan 2012 10:48:27 +0530

Hi all,

 I am trying to create a cronjob which calls hwinfo which echoes out to a
txt file. If i run the code direclty from konsole its working but the same
doesnt work in cron.
When i open the file it shows its empty.

My cronjob is

* * * * * hwinfo --short > hardware

if i read /var/log/message it shows that the command gets executed every
minute but its not echoing any data out.

Similarly i face the problem with lpstat and lpq commands

Please Help

--
regards
Rajesh Kumar. R.K

Other related posts: