Operating System - HP-UX
1829749 Members
1339 Online
109992 Solutions
New Discussion

New Line when using the @ in command

 
SOLVED
Go to solution
itrc55
Regular Advisor

New Line when using the @ in command

Hi,

 

i facing strange issue on my system 11.31 on one user, As when using the @ in the command line it's going to new line.

as following

 

$ ssh apps@
sys01 bdf
sh: sys01:  not found.

 

and no profile for this user under the home directory "/opt/IBM"

 

How to resolve this issue ?

 

Thanks

2 REPLIES 2
itrc55
Regular Advisor

Re: New Line when using the @ in command

Hi,

any user created under /home it's working fine.
but when create any user on other path i facing this issue.

Thanks
Matti_Kurkela
Honored Contributor
Solution

Re: New Line when using the @ in command

Most likely your stty settings are incorrect. Run "stty -a" and check which charactes are assigned to "intr", "kill" and "erase" control characters.

 

Depending on the settings of your terminal/emulator, one of the following commands should fix the problem:

stty intr ^C kill ^U erase ^?

 or

stty intr ^C kill ^U erase ^H

Choose the one that makes the backspace key of your terminal/emulator work right.

 

To make the settings permanent, you'll want to add this to the user's .profile.

If this user has cron jobs or other non-interactive sessions, you might want to make the stty command conditional, so that it will be executed for real interactive sessions only, e.g.:

if tty -s; then
    stty intr ^C kill ^U erase ^?
fi

 If you don't do it this way, you will see a silly "not a typewriter" error message from each of your cron jobs and/or other non-interactive sessions, as the stty command does not find a terminal device to adjust.

 

MK