updating a job in cron


 
Thread Tools Search this Thread
Operating Systems Solaris updating a job in cron
# 1  
Old 06-13-2008
updating a job in cron

I have updated the cronjob entry like below.

55 06 * * * <script name>|mailx -s <subject> abc@gmail.com bcd@gmail.com

in the cron file ( i.e. /var/spool/cron/crontabs/root)

Before updation the entry was like below.

55 06 * * * <script name>|mailx -s <subject> abc@gmail.com

I have added just one email id with space as separator . when I run crontab -l, it is showing the updated entry.

when I see the /var/cron/log, it shows the old job run ( mail sent to abc@gmail.com only)

Please let me know what is the issue
# 2  
Old 06-15-2008
Is the cron output gets emailed to both email ids at all?
# 3  
Old 06-17-2008
hi,

use crontab -e to updated y crontab ( before export EDITOR=viSmilie or edit the cron file and kill -HUP 'daemon'
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. 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

5. 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

6. UNIX for Advanced & Expert Users

cron job

Hi, Anyone please let me know how to add an entry for crontab while there are few of entries already in. When I execute crontab -e, the entries which are added already are displayed. But, I need to add one more entry to the crontab and then after that I need to remove the entry without... (1 Reply)
Discussion started by: minar
1 Replies

7. UNIX for Dummies Questions & Answers

Cron Job

Hi everybody ....I am trying to write a cron job for event based subscription for a tool called Microstrategy...if anybody have idea about this please help me... Thanks in advance ark (7 Replies)
Discussion started by: arksal
7 Replies

8. UNIX for Dummies Questions & Answers

Cron JOB

I have a cron job that ran for 3 months; all the suden, it stops working. There were no changes in the script. Is there away that I can find out why? can someone with root permission disable my cron-job? Is there away that I can look into the system to see who may have done that? My cron job... (1 Reply)
Discussion started by: bobo
1 Replies

9. UNIX for Dummies Questions & Answers

Cron job

Regarding Cron job, i want to execute a scriptevery 4 days once irrespective of a week or a month. Is it possible?Any help (2 Replies)
Discussion started by: santho
2 Replies

10. UNIX for Dummies Questions & Answers

cron is torturing me. (not updating)

Suse 10.1. Cron is running, as confirmed by pgrep cron. For a user, I do crontab -e, specify a time 2 or so minutes in the future (with time measured with the `date` command). Crontab -l gives something like 05 15 * * * cd /mydir; ./myscript.sh > old.out I wait for the command to run.... (3 Replies)
Discussion started by: tphyahoo
3 Replies
Login or Register to Ask a Question