Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-01-2004, 09:16 AM
|
#1
|
Member
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181
Rep:
|
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh
Hello all,
I just created a link such as
Code:
[root@mun-co mun]# ll /etc/rc.d/rc5.d/S96dinesh
lrwxrwxrwx 1 root root 26 Mar 31 23:42 /etc/rc.d/rc5.d/S96dinesh -> /etc/rc.d/init.d/S96dinesh
And the script is
#!/bin/bash
case "$1" in
start)
echo I like dinesh
;;
stop)
echo Dinesh
;;
esac
But during start up I am getting
just starting dinesh
I am not getting "I like dinesh"
Can any body here explain here why I am not getting this
Whether the reason is that the user environment needs to be set for displaying on the terminal.
If that is the case
How can I achieve this ?
Thanks in advance,
Murugesan
|
|
|
04-14-2009, 11:14 AM
|
#2
|
Member
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181
Original Poster
Rep:
|
When I released the college (2003 May) I submitted this because I wanted to learn case-esac in shell script.
Now I searched "i like dinesh" in network which has given me this link:
http://<br />
http://www.linuxquest...p=851700<br />
$ ls -l /etc/rc.d/rc5.d/S96dinesh
lrwxrwxrwx 1 root root 26 Apr 14 20:49 /etc/rc.d/rc5.d/S96dinesh -> /etc/rc.d/init.d/S96dinesh
$ /etc/rc.d/rc5.d/S96dinesh start
I like dinesh
$ /etc/rc.d/rc5.d/S96dinesh stop
Dinesh
Thanks & Regards,
Murugesan Nagarajan
|
|
|
04-14-2009, 01:49 PM
|
#3
|
Member
Registered: Apr 2009
Posts: 108
Rep:
|
I am not sure if I understand it correctly:
do you complain about your script's output not shown during startup?
As far as I know you need specific functions for that. On Fedora the source function library /etc/rc.d/init.d/functions is included for that purpose, especially the action() function. It handles the task of running and logging and assumably also displaying text output at boot time.
Last edited by Tinkster; 10-30-2010 at 04:25 PM.
|
|
|
04-14-2009, 11:53 PM
|
#4
|
Member
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181
Original Poster
Rep:
|
I just posted this to close this thread.
|
|
|
All times are GMT -5. The time now is 04:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|