Hi,

Can you please suggest me to how to execute .profile from perl script. I have following unix script steps & just wanted replicate them in perl script to make sure I'm executing .profile.

. ~/.profile
echo $SHELL

Can you please suggest me to how to execute .profile from perl script. I have following unix script steps & just wanted replicate them in perl script to make sure I'm executing .profile.

You could use system command. Try,

system(" source /YOUR_HOME_DIR_PATH/.profile ");