Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
replace the /your/command/you/are/trying/to/run/bin/command as the command you're trying to run
then set the /dev/pts/# to the terminal you're trying to send it to, or /dev/tty# if you want it in a Virtual Terminal
I really thankful to you, However i have tried what you said but it's not working (Actually i m new to linux ), I let you know that what i m doing and tell me whether i m doing correctly or not?
I have created a file named as "test" on tty1
Made entry as u suggested
*/2 * * * * /bin/ls > /dev/tty2
saved file
on root prompt typed
root@tty1#crontab test
checked on tty2.
logged in and there was no mail on tty2.
Waiting for your next respond!!! Thanks once again.
crontab is actually just a program to edit your cron settings. The real power is in crond, most distros have this running in the beginning, but you should double check with your settings to make sure it's running at start up.
What crond will do is read your crontab settings and runs the program according to how the crontab was setted up.
So once you've configured it, as root, you should reset your crond with "killall crond" then run "crond", it'll automatically load itself into the background and that should do it.
the best place to always ask your Linux questions is here in my opinion
if you really feel like i could help, sure, feel free to email me anytime, but i suggest LinuxQuestions first cause it helped me with all of my previous questions
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.