Operating System - HP-UX
1748242 Members
4147 Online
108759 Solutions
New Discussion юеВ

Re: '@' problem with HP-UX

 
Ashour
Occasional Advisor

'@' problem with HP-UX

Hi All,

I'm facing a strange problem on HP-UX 11.31 Itanium machine;

When logging in as 'root' ; I can type the letter '@' at the prompt normally.

But when logging in as any other user (i.e oracle) I find that when typing '@' at the prompt it skips to a new line, and the '@' character is discarded from the command.

I'm using Reflection 14 (trial) and Absolute Telnet 7.x and Putty and this happens in all of them.

I appreciate your help as I'm an Oracle DBA and new in HP-UX administration.

Thanks
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: '@' problem with HP-UX

This indicates that "@" is the default stty kill char.

You need to use stty(1) to change the char to what you like:
stty kill ^u
Turgay Cavdar
Honored Contributor

Re: '@' problem with HP-UX

Look at oracle .profile stty is set for kill, then you can change it any value you want.
Ashour
Occasional Advisor

Re: '@' problem with HP-UX

Thanks Dennis, Turgay,

stty kill ^z worked for me, but it is not saved in oracle .profile as I couldn't find such file or either .login file (in /home/oracle).

If I re-login, It comes back again.

I used "useradd" command according to Oracle Installation documentation and looks like no .profile nor .login was created.

This also can explain that I need to go to ORACLE_HOME/bin directory to run Oracle tools as no paths are defined at login time.

Any directions/advice regarding those missing files?

Turgay Cavdar
Honored Contributor

Re: '@' problem with HP-UX

After logging with oracle type "stty -a", then probably you will see kill = @. To change this value type oracle's profile "stty kill ^U" or something else.
Dennis Handly
Acclaimed Contributor

Re: '@' problem with HP-UX

>stty kill ^z worked for me

Ack! ^Z is for susp, not kill.

>but it is not saved in oracle .profile as I couldn't find such file or either .login file (in /home/oracle).
>Any directions/advice regarding those missing files?

You can just copy the real shell then scummy C shell skeleton files there.
/usr/newconfig/etc/skel/.profile
/usr/newconfig/etc/skel/.login
Ashour
Occasional Advisor

Re: '@' problem with HP-UX

Thanks Turgay,

and special THANKS to you Dennis,

I really appreciate your fast and professional help.

It is working now fine and used ^U for Kill instead of ^Z :)

Thanks again