Script cd not work as expected
Hello,
I met another script problem:-) In script, I want "cd" execute as #cd <> does.
Demo script test:
++++++++++++++++++++++++++++++++
#!/bin/sh
cd /home/test
++++++++++++++++++++++++++++++++
[root@agent ~]# chmod +x test
[root@agent ~]# ./test
[root@agent ~]#
How to make it execute as the result of "cd /home/test" ?
Thanks in advance,
cdcshu
|