Sponsored Content
Full Discussion: (t)c shell problem and ssh
Top Forums UNIX for Advanced & Expert Users (t)c shell problem and ssh Post 302458336 by Corona688 on Thursday 30th of September 2010 12:04:06 PM
Old 09-30-2010
You might want to try printenv PATH instead of printenv $PATH.

'PATH' and 'path' are different variables, yes. You should only be using PATH to define the PATH.

What do you mean by 'read-only'? If you alter it in the shell itself with export PATH="${PATH}:stuff" does "echo $PATH" show the changes? The changes naturally won't persist next time you login, being defined by your login scripts and not what you type in the shell.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies

2. UNIX for Advanced & Expert Users

SSH v2 problem

Hi, What the problem is that we have a client that has now decided to use SSH protocol 2 only for their internal security audit. This is not a problem except now our SCO system will not connect. I can connect with putty from a windows box fine until the SCO system tries to access which then... (0 Replies)
Discussion started by: Bilb
0 Replies

3. UNIX for Dummies Questions & Answers

Problem with SU or SSH in shell script

Hi Floks! This is Sravan! I am new to linux and I am trying to write bash shell script in which I want to change the user but the statements which are after the "su " command are not working that I mean I want to execute some statements as the changed user here is the code ... (2 Replies)
Discussion started by: sravanp
2 Replies

4. AIX

ssh problem

I thought I had seen all errors in SSH but the following is new to me: buffer_get: trying to get more bytes 129 than in buffer 6 Anyone seen this before please? Google search returns nothing of use that I can see. I am running an lpar on a 52A and the O/S is AIX 5.3 TL 4CSP. (2 Replies)
Discussion started by: johnf
2 Replies

5. UNIX for Advanced & Expert Users

ssh problem

hi all! i'm trying to make ssh connection between COMP1 to any computer on my network and i get this error: "Host key verification failed." any computer can access COMP1 in ssh... i have already deleted the "known_hosts" and "authorized_keys" files and created them again... any1 have an... (1 Reply)
Discussion started by: eliraza6
1 Replies

6. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

7. Shell Programming and Scripting

SSH problem

Hi , I have this piece of code. for xyz in `grep "$envir $envtype" ~/user/Move/config/ProdEnvList|cut -d "|" -f11` do username=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f7` hostname=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f6` ssh $username@$hostname -n 'cd... (2 Replies)
Discussion started by: debu182
2 Replies

8. UNIX for Dummies Questions & Answers

Problem in ssh

Hi whenever i try to do any ssh related activity like. ssh <servername>, scp some files to a server i get =true I have checked modt message but nothing is there. I can able to get the ssh session but for scp, =true prompt get displayed but nothing happens. For example: # scp file1.txt... (5 Replies)
Discussion started by: pinga123
5 Replies

9. Solaris

ssh problem

Hi Guys, when I try to login to one of my sun server (sparc) from within an open putty session on another server I get this message: bash-3.2$ ssh 10.0.0.10 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (1 Reply)
Discussion started by: cjashu
1 Replies

10. Shell Programming and Scripting

Problem with ssh -n IP

I am able to login to server x from y in shell script. But after that command is get executed on server y. I need the command to be executed on server x. Ex. ssh -n 0.0.0.X ls -ltr Above script I am executing from 0.0.0.Y I got result but it executed on server Y server. But when I use ssh... (4 Replies)
Discussion started by: babapatil14
4 Replies
profile(4)							   File Formats 							profile(4)

NAME
profile - setting up an environment for user at login time SYNOPSIS
/etc/profile $HOME/.profile DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence. /etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special actions for the root login or the su command. The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical (except for the comments): # Make some environment variables global export MAIL PATH TERM # Set file creation mask umask 022 # Tell me when new mail comes in MAIL=/var/mail/$LOGNAME # Add my /usr/usr/bin directory to the shell search sequence PATH=$PATH:$HOME/bin # Set terminal type TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid while : do if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ] then break elif [ -f /usr/share/lib/terminfo/?/$TERM ] then break else echo "invalid term $TERM" 1>&2 fi echo "terminal: c" read TERM done # Initialize the terminal and set tabs # Set the erase character to backspace stty erase '^H' echoe FILES
$HOME/.profile user-specific environment /etc/profile system-wide environment SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5) Solaris Advanced User's Guide NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most global needs. SunOS 5.10 20 Dec 1992 profile(4)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy