Setup Cron Job


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setup Cron Job
# 1  
Old 02-19-2007
Setup Cron Job

Hello,
I would like setup a CRON job to rename my server's name (host name) every day. For some reason it changes its own name every couple days to server-2.local fron server.local.
Thank you!
-Chris
# 2  
Old 02-20-2007
Would it not make more sense to find out why the server is renaming itself?

Do you use DHCP by chance?

Cheers
ZB
# 3  
Old 02-20-2007
Thank you ZB, yes it is using DHCP. I'm pretty sure there is no other sever on the network named genius.local. This is the error I get:
Image
The server is using Mac OS X server 10.4. I just figured that a cron job would solve the issue even its kinda like putting duck tape on something.
# 4  
Old 02-20-2007
Take a look at the DHCP leases file on the DHCP server, and see if there are any existing reservations for that hostname.

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

3. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

4. Shell Programming and Scripting

setup cron job

HI I am new to unix . I wanted to create a cron job that runs a script every 10 min .So when I enter vi /etc/crontab I get the following output SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * *... (1 Reply)
Discussion started by: ptappeta
1 Replies

5. UNIX for Dummies Questions & Answers

Setup a cron job and specified the start and end time

Hi guys, How can I specify the start and end time of a cron job. And my start time and end time are specified by minutes. For example, I want to set up a cron runs every 3 minutes from 18:40 to midnight. How can i do this please? Many thanks Best regards, Clu (4 Replies)
Discussion started by: clu
4 Replies

6. Solaris

How to setup a cron job to run every 45 minutes in Solaris 5.10

How to setup a cron job to run every 45 minutes in Solaris 5.10 (9 Replies)
Discussion started by: reyazan
9 Replies

7. UNIX for Dummies Questions & Answers

Need to Setup cron entry in Crontab

how to schedule a job in cron on last sunday of every month?:mad: (1 Reply)
Discussion started by: tp2115
1 Replies

8. UNIX for Dummies Questions & Answers

Cron Time Setup

Hi Guys, can someone help me how to setup a job in cron that runs each morning from 8-10 a.m. for every half an hour but starting from 8:50 a.m.? so far i have this: 00,30 8-10 * * * but the problem is that it starts at 8:30 instead of 8:50 Anyone? Thanks! (1 Reply)
Discussion started by: netrom
1 Replies

9. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

10. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies
Login or Register to Ask a Question