How to change cronjob title?


 
Thread Tools Search this Thread
Operating Systems AIX How to change cronjob title?
# 1  
Old 08-12-2010
How to change cronjob title?

Once I type "mail" command, I got to see the mail like below:

> 1 daemon Thu Aug 12 17:31 31/938 "Output from cron job "

My question is, how to do change the default title "Output from cron job " to be more customized title?

Thanks.
# 2  
Old 08-12-2010
If you modify your cron entry to send STDOUT and STDERR to mail, then you can specify the subject more descriptively, e.g.

Code:
  
15 3 * * 1-5 find $HOME-name core  2>&1 | mail -s "core-find output" <email-address>

Should do it...
# 3  
Old 08-12-2010
Tytalus is right. If you don't use the default action you can customise however you like.
Personally I try to only receive actual problems in root mail.
# 4  
Old 08-13-2010
Okay, will try that. Thanks Smilie
# 5  
Old 08-16-2010
Quote:
Originally Posted by Tytalus
If you modify your cron entry to send STDOUT and STDERR to mail, then you can specify the subject more descriptively, e.g.

Code:
  
15 3 * * 1-5 find $HOME-name core  2>&1 | mail -s "core-find output" <email-address>

Should do it...
Hi I tested the above, but I still got default title of "Output from cron job ...". Is it possible not to even have that?

Secondly, the subject was being trim 7 character from "Output from cron job". Is it possible to change the view to see the entire subject title once I type "mail"?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Change title of a thread after it is created

hi, how do we change the title of a thread after it is created? Thanks (5 Replies)
Discussion started by: milhan
5 Replies

2. UNIX for Beginners Questions & Answers

Delete columns with a specific title XXX, where the position change in each file

Goodmorning, I know how to cut a string and a column, and how to find a word. I have a file with over 100 columns. All columns have a title in the first line. I have to delete all columns with the XXX title. I can't use cut -f because the position of XXX columns change in each file, and in... (14 Replies)
Discussion started by: echo manolis
14 Replies

3. Shell Programming and Scripting

Cronjob for root password change.

Hi, I am writing a cronjob which changes default root password to some designated password(set) after 15 days. The requirement for same is because i need to give application team root access for first 15 days, but after that the default password should be changed, now I want to automate the... (3 Replies)
Discussion started by: nixhead
3 Replies

4. UNIX for Dummies Questions & Answers

Change putty title name

Hello all, I have a not so unix question for you guys(or maybe it is). I use PUTTY to login to serverA (my putty title shows as serverA.domainname.com) Now from ServerA i do ssh user@ServerB (i have ssh public private key setup)... now my question is when i do ssh and logon to... (20 Replies)
Discussion started by: abdul.irfan2
20 Replies

5. Shell Programming and Scripting

How to change the title bar of the terminal screen

Hi, How to change the value after the symbol '@' ? $ i.e. @mac1 I want to change it to @prod2 Also need to change the same in the title bar on the top when we open a new terminal. (3 Replies)
Discussion started by: milink
3 Replies

6. UNIX for Advanced & Expert Users

Change title of aixterm window online

Is there any way to change title of aixterm window online? Also is it possible to freeze first/last few lines online? (1 Reply)
Discussion started by: Soham
1 Replies

7. UNIX for Advanced & Expert Users

Change putty title window?

Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies

8. Solaris

Change Terminal Title

Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window. I was looking for similar functionality for terminal windows. Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies

9. UNIX for Dummies Questions & Answers

Change Console Title

Hello. I am trying to figure out how to change the title of my console window. I don't need it to dynamically change with my current directory. I just want to be able to change the name of it, so when I minimize the window I can see which windows are for what purpose. I've tried using the... (8 Replies)
Discussion started by: medmonson
8 Replies
Login or Register to Ask a Question