Operations Orchestration Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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

ssingla
Acclaimed Contributor

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 REPLY
Highlighted
ntt00015
Frequent Visitor

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.
//Add this to "OnDomLoad" event