The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
console set up hp ux 11i jestinabel HP-UX 2 12-17-2006 10:30 PM
Crontab Mail message pankajkrmishra Shell Programming and Scripting 1 09-22-2006 01:36 AM
Console Log kdreaves UNIX for Dummies Questions & Answers 4 05-21-2004 02:13 PM
console guest100 UNIX for Dummies Questions & Answers 5 02-13-2002 03:17 AM
console error message boristhespider UNIX for Dummies Questions & Answers 3 09-03-2001 11:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-11-2007
Registered User
 

Join Date: Jul 2007
Posts: 1
console message from Crontab run

I run my nightly backup thru a crontab job. Is there any way to get the message to mount a new tape to the console? Currently it appears to go to an email.
Reply With Quote
Forum Sponsor
  #2  
Old 07-11-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
EDIT : I guess I'm not 100% certain for your question, I thought that you want output of the cron command to be printed onto terminal, if yes, read my suggestion below, if not, please disregard.
________________________________

I think yes, just pipe the command like :
0 * * * * * /your-script possible parameters | wall
depending on your system type and with respective parameters. Read the man pages for wall, which actually will write the message to all users, so it may not be a good solution.
Instead, you can use "write" if present, from "man write" :

Quote:
NAME
write - write to another user

SYNOPSIS
write user [terminal]
It will be good if you test the command from CLI first, before adding it to cronjob.
I can't think of anything more usable at this moment, there may be more efficient solutions.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0