Sponsored Content
Operating Systems HP-UX Remote ssh execution and .profile issues Post 302670561 by nbriozzo on Thursday 12th of July 2012 08:06:27 AM
Old 07-12-2012
2) Basically: I copied .profile from server B to A, and tried to execute the script from A to B. Will get that error again.

So, i should create a 'enviroment' file on my .ssh directory? What should i declare there?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

executing .profile with ssh

Hi, How do I get all my profile settings when connecting with ssh? (5 Replies)
Discussion started by: rein
5 Replies

2. Shell Programming and Scripting

Issues using ssh from crontab to run remote script from

I have a solaris9 x86 server using ssh as follows: SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0. The remote server solaris9 sparc has exactly the same version ssh installed. I am running a script on my server which includes the following command to run a script on the remote server:... (4 Replies)
Discussion started by: frustrated1
4 Replies

3. UNIX for Dummies Questions & Answers

Profile execution issue

Hi I have a profile execution issue, I log on to a linux machine , then i do sudo to another user as sudo su - <username> , then <username> .profile executes properly but when I type something I loose all environment varaible and my prompt changes to '$' loosing the PS1 value that I have... (1 Reply)
Discussion started by: malavm
1 Replies

4. Shell Programming and Scripting

ssh can't back from remote host during script execution

Hi all I wrote a script to execute a script on several remote hosts, but somehow during the execution of the local script, ssh can't come back from the remote host, so that causes my local script hanging... I use the below command to do the job in the local script, any idea? ssh... (12 Replies)
Discussion started by: bzylg
12 Replies

5. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

6. AIX

SSH and a users .profile

How do I get a command like "ssh Theuser@host date" to execute the /home/Theuser/.profile before executing the "date" command? (5 Replies)
Discussion started by: IL-Malti
5 Replies

7. Cybersecurity

Log remote execution over SSH

If a user execute commands remotely over ssh : $ ssh USERNAME@SERVER COMMANDSHow the SERVER administrator can log those COMMANDS executed in a "not a tty" session ? I searched for my question and get the following suggestions:Anybody give help how to do this ? what the content of "/bin/bash "... (1 Reply)
Discussion started by: new0h
1 Replies

8. Shell Programming and Scripting

Shell Script execution issues

Hi, There's a shell script by name "download", which has been created as user "mgr" and that script needs to executed as user "dev". I tried giving privileges 701 on the script download. But it's throwing the error message bin]$ ./download /bin/bash: ./download: Permission denied ... (6 Replies)
Discussion started by: venkatesh17
6 Replies

9. Shell Programming and Scripting

Pause processes in remote host and resume execution in another remote host

Hi, Given addresses of 2 remote machines, using a shell script is it possible to get the state of running processes in "src" stop all the processes in "src" exit out of "src" ssh into "dest" resume the state of executing processes captured in step 1 in "dest" Assumption: "src" is... (3 Replies)
Discussion started by: Saeya Darsan
3 Replies

10. Shell Programming and Scripting

Remote script over ssh execution issues.

If I execute below code I am able to get string from column8 and column10 about a process. serverA1$> ps -ef | grep rotate | grep 'config' | awk '{print $8" "$10}' /<Oracle_home>/ohs/bin/odl_rotatelogs -h:/<app_Home>/config/OHS/ohs1/component_events.xml_ohs1... (12 Replies)
Discussion started by: kchinnam
12 Replies
hx509 enviroment functions(3)					Heimdalx509library				     hx509 enviroment functions(3)

NAME
hx509 enviroment functions - Functions int hx509_env_add (hx509_context context, hx509_env *env, const char *key, const char *value) int hx509_env_add_binding (hx509_context context, hx509_env *env, const char *key, hx509_env list) const char * hx509_env_lfind (hx509_context context, hx509_env env, const char *key, size_t len) const char * hx509_env_find (hx509_context context, hx509_env env, const char *key) hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char *key) void hx509_env_free (hx509_env *env) Detailed Description Function Documentation int hx509_env_add (hx509_context context, hx509_env * env, const char * key, const char * value) Add a new key/value pair to the hx509_env. Parameters: context A hx509 context. env enviroment to add the enviroment variable too. key key to add value value to add Returns: An hx509 error code, see hx509_get_error_string(). int hx509_env_add_binding (hx509_context context, hx509_env * env, const char * key, hx509_env list) Add a new key/binding pair to the hx509_env. Parameters: context A hx509 context. env enviroment to add the enviroment variable too. key key to add list binding list to add Returns: An hx509 error code, see hx509_get_error_string(). const char* hx509_env_find (hx509_context context, hx509_env env, const char * key) Search the hx509_env for a key. Parameters: context A hx509 context. env enviroment to add the enviroment variable too. key key to search for. Returns: the value if the key is found, NULL otherwise. hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char * key) Search the hx509_env for a binding. Parameters: context A hx509 context. env enviroment to add the enviroment variable too. key key to search for. Returns: the binding if the key is found, NULL if not found. void hx509_env_free (hx509_env * env) Free an hx509_env enviroment context. Parameters: env the enviroment to free. const char* hx509_env_lfind (hx509_context context, hx509_env env, const char * key, size_t len) Search the hx509_env for a length based key. Parameters: context A hx509 context. env enviroment to add the enviroment variable too. key key to search for. len length of key. Returns: the value if the key is found, NULL otherwise. Version 1.5.2 11 Jan 2012 hx509 enviroment functions(3)
All times are GMT -4. The time now is 01:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy