perl script to open an executable and pass the user credentials

Is it possible to open an executable file and pass user credentials through the
perl script. If yes Please do share the CPAN module names and the way to access the executable file.

For eg. I want to open the IBM LOTUS Sametime through my perl code
and pass the user credentials like username,password and hostname through
my perl script.

Any suggestions,ideas on the above will be much helpful for me.....

---------- Post updated 08-24-12 at 12:56 AM ---------- Previous update was 08-23-12 at 11:52 PM ----------

Any ideas on this will be much appreciated .....

Regards,
Giris

---------- Post updated at 05:04 AM ---------- Previous update was at 12:56 AM ----------

I want to open the executable file and then enter the credentials(username,password and hostname).

Are there any chances of developing the code ??

This sounds like you are running perl on Windows. Unless LOTUS exists for UNIX, which I do not know.

However the idea is the same. Use backticks. However you can perform the task you describe from the command line duplicate it in backticks.

If this is UNIX, some minor changes are required from Windows, like using a here document insiode the backticks.