-   Linux - Newbie (
-   -   echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh (

murugesan 04-01-2004 09:16 AM

echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh
Hello all,
I just created a link such as

[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

case "$1" in
echo I like dinesh
echo Dinesh

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

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

Thanks & Regards,
Murugesan Nagarajan

maresmasb 04-14-2009 01:49 PM

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.

murugesan 04-14-2009 11:53 PM

I just posted this to close this thread.

All times are GMT -5. The time now is 07:44 PM.