Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi all, im a bit stuck on something. Basically im trying to configure cron so that when i reboot my system it will print e.g "Hello World". anyone able to help me out here? any responses appreciated.
rebooting your system has nothing to do with cron. infact it's directly unrelated. cron is to do things on a 100% time based schedule and takes no bearing at all from what the system is doing at the time. cron couldn't care less if you're box just rebooted. where do you want to print this message? what functionality are you trying to achieve?
rebooting your system has nothing to do with cron. infact it's directly unrelated. cron is to do things on a 100% time based schedule and takes no bearing at all from what the system is doing at the time. cron couldn't care less if you're box just rebooted. where do you want to print this message? what functionality are you trying to achieve?
thanks for your replies. I probably presented the question wrongly. Im trying to see if I can schedule tasks to run at a specific time (in this case a message say "hello world" to be printed when the system is rebooted). not quite sure how to do this using cron, at, batch or anyother command available. responses appreciated
Where would you like the message to be printed? On the console at boot (text messages that scroll up the screen at boot time), or a graphical dialog box after you log in? If you want a dialog to appear after login, can you tell us what desktop environment you're using (KDE, GNOME etc)?
Where would you like the message to be printed? On the console at boot (text messages that scroll up the screen at boot time), or a graphical dialog box after you log in? If you want a dialog to appear after login, can you tell us what desktop environment you're using (KDE, GNOME etc)?
thanks in advance. I'd like the msg to be printed on the terminal at boot time.
yeah you can put it there, about the only place it could go, but I can't really imagine it's going to be any use... it'll fly past the screen, and as soon as your login shell loads, it's gone, so would only be visible on screen for literally a second i'd guess.
Ahh the joys of not being given real live examples..
If you want something to appear on each VT prior to login (i.e. printed above the login: line), put text in /etc/issue. If you want it to appear just after login on virtual consoles, put it in /etc/motd (motd stands for message of the day).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.