trying to automate a process that prompts for response in ksh script

i am trying to automate a process that is very manual.
Have 50 files names in a file. will do a for loop and for each file name, create a clearcase element for version control.
very simple...1 or 2 commands but the clearcase software prompts me for comments between command 1 and command 2 in the script. I want the same comments for all 50 files but dont know how to automate this response?
pdadddinoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AxterCommented:
Hi pdadddino,

Please post your current script

Cheers!
David Maisonave
pdadddinoAuthor Commented:
here is script without the 'for' loop. just want to get it working for 1 file then will wrap the loop around it. I have added comments in ( ) to help explain. In this example the script hangs waiting for my comments after the 'cleartool...' command

cd /vobs/NYC_FI_PFDB/scripts                                             (simply a change in the current directory)
echo 'pwd='$PWD                                                              (echo....)
cleartool mkelem -eltype text_file ubs_ext_pos.ksh                (command to create a clearcase element. it will prompt for comments)
new version tree in new clearcase PFIT vob for PF migration  (here are the comments)
.                                                                                       ('.' tells cleartool that the comments are complete)



MikeOM_DBACommented:

cleartool mkelem -eltype text_file ubs_ext_pos.ksh <<EOF
New version tree in new clearcase PFIT vob for PF migration.
EOF

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MikeOM_DBACommented:
Try the above.
pdadddinoAuthor Commented:
that was easy....thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.