[Ilugc] Cron Job

  • From: msvraghavan2003@xxxxxxxxx (vijayaraghavan seshan)
  • Date: Wed, 25 Jan 2012 10:54:40 +0530

where is the txt file located in the system

On 1/25/12, Rajesh kumar <rkrajeshkumar87 at gmail.com> wrote:

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
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
Thanks
VJRGVN

Other related posts: