How to set delete Key to erase automatically


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to set delete Key to erase automatically
# 1  
Old 04-16-2009
How to set delete Key to erase automatically

We need to su to root in 1000 systems, so it is almost impossible to add "stty erase ^H" to every .profile on these systems.

Is there any way to set delete key to erase automatically after running "su -"?

Thanks Smilie
# 2  
Old 04-16-2009
try adding it to shells .profile not in users .profile
# 3  
Old 04-16-2009
Quote:
Originally Posted by aixlover
We need to su to root in 1000 systems, so it is almost impossible to add "stty erase ^H" to every .profile on these systems.

Why is it impossible? That's what scripts are for.

If you put it in /etc/profile, you only need to do it once per system.
# 4  
Old 04-17-2009
Ok. It is possible, then we will have to put "stty erase ^H" in /etc/profile for 1000 systems.

Is there a better way to achive the goal? Thanks!

Quote:
Originally Posted by cfajohnson
Why is it impossible? That's what scripts are for.
If you put it in /etc/profile, you only need to do it once per system.
# 5  
Old 04-19-2009
May be operating system dependent (see "man su").
On my system these both work because the command executes after the target system's profile:

Code:
su - root -c "stty erase '^H'"

su root -c "stty erase '^H'"

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Different set key multiplot gnuplot

Hello everybody, I am using Windows 10. I need to plot several graphs simultaneously with Gnuplot. The script is: GNUTERM = "wxt" set terminal wxt set termoption enhanced set encoding iso_8859_1 set multiplot layout 2,3 set xtics out set ytics out set xtics nomirror set ytics... (4 Replies)
Discussion started by: supernono06
4 Replies

2. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

3. Shell Programming and Scripting

Delete log files automatically.

Here is the script I want to run to deleted log files after a certain time: touch /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs find /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs -atime +120 - exec rm -rf {}\; Exerytime I run it, it throws me the error: find: paths must... (2 Replies)
Discussion started by: lennyz04
2 Replies

4. Shell Programming and Scripting

gnuplot set key issue

Hi I have a plotting function like this- plot '../processing_old/time0.txt' using 1:6 title "1.6" with boxes fs solid 0.05 ls 5,\ 'time0.txt' using 1:6 title "1.7" with boxes fs solid 0.05 ls 6,\ '../processing_new/time0.txt' using 1:6 title "2.0" with boxes fs solid... (8 Replies)
Discussion started by: jamie_123
8 Replies

5. Shell Programming and Scripting

How to write a shell script to automatically accept return key with out user intervention?

Hi Friends, i am creating a shell script which is accepting file name as input parameter from Java and invoking finacle service. The service will accpet text file,B2k_session id,etc and upload the text file data in finacle database. My shell script looks like this:- #! /bin/ksh... (2 Replies)
Discussion started by: vadlamudy
2 Replies

6. UNIX for Advanced & Expert Users

Set ACL automatically for new folder/objects

Hi, In our bank production environment - IBM AIX 5.3, we have a particular parent folder inside which an application creates temporary folders & files. These temp folders exist for the lifetime of the user session within the application and then get deleted automatically. Since these temp... (1 Reply)
Discussion started by: deepaksinbox
1 Replies

7. Shell Programming and Scripting

How to automatically delete old backups

I'm creating nightly backups using cygwin bash with this one line script: zip -r "K:/backup/outlook/`date "+%y%m%d%M"`" C:/Documents\ and\ Settings/siegfried/Local\ Settings/Application\ Data/Microsoft/Outlook How can I enhance my script using the "rm" command so I never have more than 4 zip... (2 Replies)
Discussion started by: siegfried
2 Replies

8. Solaris

problem with delete key...

Hi all .. #stty erase ^H stty erase ^? is already there in my .profile,but still whin i press delete key it is displaying ^[[ like this..... what to do.... (8 Replies)
Discussion started by: venkatramana
8 Replies

9. Solaris

How to set history key in Solaris

Hi Solaris guys, I just have my solaris 10 setup on x86 old box... How can i get history key? eg. Linux using up/down arrow key to call history command... HPUX using Esc-k How can i do the samething in Solaris? Thanks in advanced! Regards, gary (3 Replies)
Discussion started by: timontt
3 Replies

10. UNIX for Dummies Questions & Answers

problem with delete key...

Hi all .. #stty erase ^H stty erase ^? is already there in my .profile,but still whin i press delete key it is displaying ^[[ like this..... what to do.... (0 Replies)
Discussion started by: venkatramana
0 Replies
Login or Register to Ask a Question