'@' problem with HP-UX (143 Views)
Reply
Occasional Contributor
Ashour
Posts: 5
Registered: ‎08-14-2009
Message 1 of 7 (143 Views)

'@' 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
Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 2 of 7 (143 Views)

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
Honored Contributor
Turgay Cavdar
Posts: 473
Registered: ‎05-30-2007
Message 3 of 7 (143 Views)

Re: '@' problem with HP-UX

Look at oracle .profile stty is set for kill, then you can change it any value you want.
Occasional Contributor
Ashour
Posts: 5
Registered: ‎08-14-2009
Message 4 of 7 (143 Views)

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?

Honored Contributor
Turgay Cavdar
Posts: 473
Registered: ‎05-30-2007
Message 5 of 7 (143 Views)

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.
Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 6 of 7 (143 Views)

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
Occasional Contributor
Ashour
Posts: 5
Registered: ‎08-14-2009
Message 7 of 7 (143 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.