scp and ssh thu shell script

Hi,

 I have a requirement of using the commands 'scp' and 'ssh' for remote shell operations.The commands are working fine from the command line.But my idea is to use it in a shell script and execute it.

Can anyone suggest how this can be implemented uninteractively?
Your help is appreciated

With Regards
Dileep Pattayath

better to use expect for these type of works...

o/w just use here documentation method
eg
telent hostame << TELNET
login password
...
....

TELNET