Operations Orchestration Support and News Forum
Showing results for 
Search instead for 
Do you mean 

How to get the .profile executed for a user id when running a shell script on a unix server ?

Highlighted
Occasional Visitor

How to get the .profile executed for a user id when running a shell script on a unix server ?

While running a script on a Unix server using a ssh protocol, the tool is not executing the .profile of that user and hence not setting up proper environment for the script to be successful. Can u please suggest something so that the user's .profile is executed prior to running the script ?

 

Thanks

1 REPLIES
Trusted Contributor

Re: How to get the .profile executed for a user id when running a shell script on a unix server ?

Hi,
If you use SSH shell operation you can set profile settings with first command after logon and then you can run your script. If you use SSH command operation, you can use the sessionId output parameter for the next command operation.


Best Regards.