Clearcase set into a view with script

Hi Friends,

How do i set into a view and continue with make via a script. I could do both separately but when i try both in a single script, it stops after setting into the view.

below is the sample "ap_script", first two execute, but the third one command doesn't.

echo $USER
cleartool setview test_view
echo $USER

Logs:
bash-3.00$ ap_script
ap
Word too long.
[ap@redington ~/script]$

Why isn't any command executed after setview. Is it spawning a new process? How do i get it working?

-AP

give the full path to the cleartool.

which cleartool

-Devaraj Takhellambam

cleartool at : /usr/atria/bin/cleartool