cd command is not working in my shell script

Hi,

Following is my shell script.

#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;

In this "cd" is not working and not getting any error.

my shell is "tcsh"
Unix version is SunOS : 5.008

Could anyone please help me out.

Amit

what are you expecting that to do?

"cd /vob/ios/sys" will execute in a child process and print nothing if successful.

cd with nothing will move to your home directory.

Hi Porter,

could you suggest, how to keep the control on the cd /vob/ios/sys
folder. ie

I dont cd to come back to my home.

My requirement, once I cd to /vob/ios/sys.. I need to execute one script

Could you help

Thanks

Amit

just do

cd /vob/ios/sys