Hi,
I have written a shell script 1............and internally its
calling another shell script 2........input to redhat specific
chkconfig command... which executes and builds links in bootstartup
scipt directories (rc.d).
Actually i needs to pass a variable $DIRECTORY of my command available
( can hard code but i am
setting it in the 1st script) to the 2nd script how to pass that... As
the setting is happening before the calling of
shell script2, i just tried like putting echo "$DIRECTORY" into the 2nd
shell script, which is not working is there
a way to get the functionality.
shellscript1:
#!/bin/sh
---------
---------
---------
DIRECTORY="/sbin/ntp"
---------
---------
/sbin/chkconfig "shellscript2"
---------
shellscript2:
#!/bin/sh
-------
echo "$DIRECTORY" <------put to see whether getting the value here
or not..
$DIRECTORY -c ntp.conf <------if it is so , i could use like
this.................
thanks,
srinivas.
--
office ph: 091-40-3607619