Using Macros in sftp command

Hi,

I've some existing scripts wherein am using ftp + .netrc. I've defined my macros in .netrc file.

I want to switch to sftp now but it seems it doesn't support macros and .netrc and it gives "command invalid" error.

Is there any other alternative?

Note: I don't want help for automating sftp process. I just need it for defining and calling macros.

Please help.

Regards,
PS

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.