Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] hwclock: command not found
Date: Mon, 25 Feb 2013 20:39:29
Message-Id: 20130225203904.GB30055@syscon7.inet
1 I'm updating clock via bash script. When I run it from a command line, it works just fine but when I try to run it via crontab I get:
2
3 /home/thelma/business/programs/time_date_setting_script.sh: line 3: hwclock: command not found
4
5 here the script:
6 #!/bin/sh
7 rdate -s 128.138.140.44
8 hwclock --systohc
9
10 and crontab entry:
11 45 12 * * 1 sh /home/thelma/business/programs/time_date_setting_script.sh
12
13 When I run the scrip manually or just the command: "hwclock --systohc" it is working OK; why isn't it working from the crontab?
14
15 --
16 Joseph

Replies

Subject Author
Re: [gentoo-user] hwclock: command not found Randy Barlow <randy@×××××××××××××××××.com>
Re: [gentoo-user] hwclock: command not found Florian Philipp <lists@×××××××××××.net>