Re: ddclient cron job

2007-03-20 Thread Michael Pobega
On Tue, Mar 20, 2007 at 08:11:43AM +, Liam O'Toole wrote:
> On Mon, 19 Mar 2007 19:59:18 -0400
> Michael Pobega <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, Mar 19, 2007 at 10:31:07PM +, Liam O'Toole wrote:
> > > On Mon, 19 Mar 2007 17:37:29 -0400
> > > Michael Pobega <[EMAIL PROTECTED]> wrote:
> > > 
> > > > I'm trying to get ddclient to run as a cronjob [...]
> > > > 
> > > 
> > > Just invoke ddclient from a script in one of the directories
> > > mentioned in /etc/crontab. Your script will run regardless of which
> > > users are logged in (or not).
> > > 
> > 
> > */10 *  * * *   rootddclient (args)
> > 
> 
> That will work. But an interval of 10 minutes is way too short. You
> only need to run ddclient when your IP address changes or after 30
> days, whichever comes sooner. In the latter case you would run it with
> the '-force' option to renew your subscription with dyndns.org.
> 

I changed it to thirty minutes. The reason I need it to update so
often is because my IP changes pretty often, I'd say 3~4 times per
day. I think that's why the ddclient daemon doesn't work for me; It
may not be updating the server enough, so I  set a cronjob to take
care of that.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ddclient cron job

2007-03-20 Thread Michael Pobega
On Tue, Mar 20, 2007 at 01:41:22AM -0400, Celejar wrote:
> On Mon, 19 Mar 2007 17:37:29 -0400
> Michael Pobega <[EMAIL PROTECTED]> wrote:
> >  
> > I know ddclient can run as a daemon, but most of the time that daemon
> > doesn't work and I end up just having to run ddclient manually myself.
> > I'd just like to be able to set it as a cronjob, if that's possible.
> 
> Just curious, what goes wrong when you run it as a daemon? It seems to
> work fine for me.
> 

Well it usually works as a daemon, but sometimes it just doesn't
update my ip (I don't know why, but some of the time it just DOESN'T
work. Think of my cronjob as insurance).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ddclient cron job

2007-03-20 Thread Liam O'Toole
On Mon, 19 Mar 2007 19:59:18 -0400
Michael Pobega <[EMAIL PROTECTED]> wrote:

> On Mon, Mar 19, 2007 at 10:31:07PM +, Liam O'Toole wrote:
> > On Mon, 19 Mar 2007 17:37:29 -0400
> > Michael Pobega <[EMAIL PROTECTED]> wrote:
> > 
> > > I'm trying to get ddclient to run as a cronjob [...]
> > > 
> > 
> > Just invoke ddclient from a script in one of the directories
> > mentioned in /etc/crontab. Your script will run regardless of which
> > users are logged in (or not).
> > 
> 
> Thanks for the pointer, I think that worked out well. I set the line
> as:
> 
> */10 ** * *   rootddclient (args)
> 
> Is that all I'll need to do to have ddclient update my IP
> automatically every 10 minutes? (Besides the command not working of
> course, since I've tested it out already)
> 
> 

That will work. But an interval of 10 minutes is way too short. You
only need to run ddclient when your IP address changes or after 30
days, whichever comes sooner. In the latter case you would run it with
the '-force' option to renew your subscription with dyndns.org.

-- 

Liam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ddclient cron job

2007-03-19 Thread Celejar
On Mon, 19 Mar 2007 17:37:29 -0400
Michael Pobega <[EMAIL PROTECTED]> wrote:

[snip]

> I know ddclient can run as a daemon, but most of the time that daemon
> doesn't work and I end up just having to run ddclient manually myself.
> I'd just like to be able to set it as a cronjob, if that's possible.

Just curious, what goes wrong when you run it as a daemon? It seems to
work fine for me.

> Also, if I set it as a root cronjob will that job only happen if/when
> I log into root? If it works so that I don't have to be logged into
> root then I could avoid a lot of hassle.

Cron jobs run as long as the machine is up; it doesn't matter whether
the user who set up the job is logged on.

Celejar

-- 
ssuds.sourceforge.net - Home of Ssuds and Ssudg, a Simple Sudoku Solver
and Generator


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ddclient cron job

2007-03-19 Thread Michael Pobega
On Mon, Mar 19, 2007 at 10:31:07PM +, Liam O'Toole wrote:
> On Mon, 19 Mar 2007 17:37:29 -0400
> Michael Pobega <[EMAIL PROTECTED]> wrote:
> 
> > I'm trying to get ddclient to run as a cronjob [...]
> > 
> 
> Just invoke ddclient from a script in one of the directories mentioned
> in /etc/crontab. Your script will run regardless of which users are
> logged in (or not).
> 

Thanks for the pointer, I think that worked out well. I set the line
as:

*/10 *  * * *   rootddclient (args)

Is that all I'll need to do to have ddclient update my IP automatically
every 10 minutes? (Besides the command not working of course, since
I've tested it out already)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ddclient cron job

2007-03-19 Thread Liam O'Toole
On Mon, 19 Mar 2007 17:37:29 -0400
Michael Pobega <[EMAIL PROTECTED]> wrote:

> I'm trying to get ddclient to run as a cronjob, but before I do it I
> was wondering if it is not safe to do this.
> 
> I normally run under a user account (And not root), and ddclient can't
> be run by anyone but the owner (It won't let you run it, even if you
> have group access; "/etc/ddclient.conf must only be accessible by it's
> owner")
> 
> I'm just wondering, before I do anything, if it is safe to chown all
> of my files to my user account? Or is there an easier alternative?
> 
> I know ddclient can run as a daemon, but most of the time that daemon
> doesn't work and I end up just having to run ddclient manually myself.
> I'd just like to be able to set it as a cronjob, if that's possible.
> 
> Also, if I set it as a root cronjob will that job only happen if/when
> I log into root? If it works so that I don't have to be logged into
> root then I could avoid a lot of hassle.
> 
> Thank you.
> 
> 

Just invoke ddclient from a script in one of the directories mentioned
in /etc/crontab. Your script will run regardless of which users are
logged in (or not).

You can also set up your DHCP client to run ddclient when the IP
address changes. How you would do that depends on which DHCP client you
use. See the file /usr/share/doc/ddclient/README.gz for some examples.

-- 

Liam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



ddclient cron job

2007-03-19 Thread Michael Pobega
I'm trying to get ddclient to run as a cronjob, but before I do it I
was wondering if it is not safe to do this.

I normally run under a user account (And not root), and ddclient can't
be run by anyone but the owner (It won't let you run it, even if you
have group access; "/etc/ddclient.conf must only be accessible by it's
owner")

I'm just wondering, before I do anything, if it is safe to chown all
of my files to my user account? Or is there an easier alternative?

I know ddclient can run as a daemon, but most of the time that daemon
doesn't work and I end up just having to run ddclient manually myself.
I'd just like to be able to set it as a cronjob, if that's possible.

Also, if I set it as a root cronjob will that job only happen if/when
I log into root? If it works so that I don't have to be logged into
root then I could avoid a lot of hassle.

Thank you.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]