What is the difference between calling the sub scripts of below two line.
/home/scripts/devdb.sh
. /home/scripts/devdb.sh
sh /home/scripts/devdb.sh
We are using the suse 2.0 version
What is the difference between calling the sub scripts of below two line.
/home/scripts/devdb.sh
. /home/scripts/devdb.sh
sh /home/scripts/devdb.sh
We are using the suse 2.0 version
(1) script will be executed in a new shell
(2) will be executed in the current shell
(3) will be executed in new shell, but script need not to have execute permission
Can u explain me with an example for each one?
1, chmod -x /home/scripts/devdb.sh
run it three ways as you listed. anything different?
2, echo "export XXXXX=yyyy" >> /home/scripts/devdb.sh
also run it, then echo $XXXXX
anything different?
i could n't get u clearly,
Can u explain me little elaborately