Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: thrruss on October 29, 2000, 05:54:30 PM

Title: strange Crontab
Post by: thrruss on October 29, 2000, 05:54:30 PM
Hi guy!
There is something strange with my crontab and i can't solve it.
I made a bash script (with full path files) to reconnect my adsl and added this file to my crontab file:
*/5 * * * * /usr/bin/reconnect.sh
when i launch this script it works but it seams not to be launched by cron!
my atd daemon is on and i have no more ideas!
for the moment i have to launch this script on my own! Quite strange for a linux server to pay someone to launch a script every day!
do you have any idea??
thank you guys!
Title: RE: strange Crontab
Post by: Charlie Brady on October 29, 2000, 08:31:00 PM
thrruss wrote:

> I made a bash script (with full path files) to
> reconnect my adsl

I'm interested to know why your adsl needs to be reconnected. Doesn't it reconnect automatically? It would be better to fix that problem than to add a crontab job.

Charlie
Title: RE: strange Crontab
Post by: thrruss on October 29, 2000, 11:35:06 PM
The problem is that I have a whole script to launch when i connect.
Thus, it is absolutely needed to launch this script every 5 minutes.
In that script i have, for example, to update my dynamic domain name!
Title: RE: strange Crontab
Post by: Charlie Brady on October 29, 2000, 11:53:53 PM
thrruss wrote:

> The problem is that I have a whole script to launch when i
> connect. Thus, it is absolutely needed to launch this script
> every 5 minutes. In that script i have, for example, to update
> my dynamic domain name!

The e-smith server and gateway software includes support for updating dynamic domain name servers. What other script do you need to run and why?

Charlie
Title: RE: strange Crontab
Post by: thrruss on October 30, 2000, 12:55:29 AM
Sorry but it's not the answer i'm waiting for!
Title: RE: strange Crontab
Post by: Damien Curtain on October 30, 2000, 01:30:14 AM
thrruss wrote:

> Sorry but it's not the answer i'm waiting for!

How about man 5 crontab? What does the error msg cron reports when trying to run your script? Are you trying to run the cronjob as a user? Have you set your shell in your crontab entry?

try setting your shell eg. SHELL=/bin/bash and have the error reports post to you so you can share the msg with us MAILTO=

e-smith supports what youve asked for, as Charlie has said, but
anyway try the above at least.

--
 Damien