Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

'@' 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
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
Highlighted
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