- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rm -i stops
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:05 AM
09-12-2002 06:05 AM
rm -i
it just stops responding,
I cannot tell not responding but when I interrupt it returns back to the prompt.
ALso ftp gives the same result.
No messages in syslog.log.
But rm -f works fine.
Some solutions please
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:10 AM
09-12-2002 06:10 AM
Re: rm -i stops
please do a test:
create a testfile
rm -i testfile
without prompting type a "y" or "n". Anything happened?
regards Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:12 AM
09-12-2002 06:12 AM
Re: rm -i stops
But when i give y or n that's it.it just stops.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:13 AM
09-12-2002 06:13 AM
Re: rm -i stops
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:18 AM
09-12-2002 06:18 AM
Re: rm -i stops
dbc_max_pct is 50% on my machine.
I don't know why I have so much amount of buffer cache.
The memory on the machine is 4GB.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:25 AM
09-12-2002 06:25 AM
Re: rm -i stops
Very intersting. I can see only 2 possibilities;
1. rm -i needs to interact with your terminal correclty to get the y or n response. Possibly you type y or n
2. rm -f says it ignores permission problems (check them) and diagnostic messages so possibly you have a problem and rm -i detects it but rm -f ignores these problems. It could be hardware (have you checked xstm -> logtool for any hardware diagnostic errors).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 07:03 AM
09-12-2002 07:03 AM
Re: rm -i stops
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 09:53 AM
09-13-2002 09:53 AM
Re: rm -i stops
this looks unusuall indeed.
Check if "rm" is really "rm".
Any alias set ?
Substituted by a script to do additional stuff ?
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 04:14 PM
09-13-2002 04:14 PM
Re: rm -i stops
type rm
This is a standard alias (POSIX shell and Kshell) for whence -v and what this does is to report exactly what rm will look like. For instance, it might report that rm is an alias to /tmp/badcommand which is very bad.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 05:14 PM
09-13-2002 05:14 PM
Re: rm -i stops
Once you figure out WHICH "rm" you are using:
which rm
then find where the rm commands are:
whereis rm
THEN,
TG, you need to FIX this ASAP:
dbc_max_pct is 50% on my machine.
dbc_max_pct for 4GB should be about 15% MAX, but more likely like 10%!!!
dbc_min_pct should be about 5%!!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 05:15 PM
09-13-2002 05:15 PM
Re: rm -i stops
Also on the "rm" thing, this isn't an NFS or samba share is it??
Also, what does /etc/nsswitch.conf look like???
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2002 03:27 AM
09-14-2002 03:27 AM
Re: rm -i stops
it is
/usr/bin/rm
type rm gives
rm is a tracked alias for /usr/bin/rm
The nsswitch.conf files has its reference to files for all the entries.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2002 04:55 AM
09-14-2002 04:55 AM
Re: rm -i stops
Can you "cat /dev/null > filename" to the files you want to rm??
Do you have acl's turned on?
Does this occur on EVERY filesystem?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2002 07:19 PM
09-15-2002 07:19 PM
Re: rm -i stops
I just do a touch filename and then use
rm -i filename.
Also ftp behaves the same.
I do a ftp
username
then just stops.
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2002 10:50 PM
09-15-2002 10:50 PM
Re: rm -i stops
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2002 11:04 PM
09-15-2002 11:04 PM
Re: rm -i stops
Is it happening for all the users you logged on or just a particular user?
Also please check your .profile and shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 08:15 PM
09-16-2002 08:15 PM
Re: rm -i stops
This problem is more with a particular user.
If I login as this user and switch to some other user I face the similar problem.
I do not have any .cshrc and .login files for this user.
this is the stty -a output.
speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 1; time = 1;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp
werase
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 11:32 PM
09-16-2002 11:32 PM
SolutionBut nevertheless, it's your "-cread" stty setting that worries me. Could you try a "stty cread" before doing the rm -i?
If that does not help, we should check if it's the stty setting is involved at all. Take a "good" user without problems and do a.
stty -g >/tmp/stty-settings
Then logon as the "bad" user and enter:
stty $(cat /tmp/stty-settings)
Let's see what happens...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:27 AM
09-17-2002 12:27 AM
Re: rm -i stops
I think it is working fine now.
But still I am not sure as it is not stable.
Thanks for your help.
I will revert incase there is problem.
Thanks for all the replies.