Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've got a backup script that I am running occassionally that I wrote. When I run said script in SSH, it works like a charm. If I run said script in GNOME on the RH8.0 Linux box itself, or through VNC (remote desktop), it will halt the computer pretty much entirely, and I have to reboot. Any suggestions as to why it would work one way and not another? Here is the script:
You're talking a bit over my head. I'm running ot from the "Terminal Command Line" in GNOME. It seems to hange on the first command. Gets a little ways through the rm command and then dies. I have it running in verbose mode, so I can see what's going on to some extent. What should I do with echo statements? And it *does* run in SSH, for some reason.
Yessir, same user both ways. I don't think the echo statements are necessary since I'm running the rm and cp commands in verbose mode (displayes every copy or deletion). It seems to crash in mid-rm. Any ideas why different shells would react differently?
I don't want to change the owners of all the files before I copy them. That would cause all kinds of problems. When I run this script, I always do so root. It works in SSH and not GNOME. I'm assuming that means it's not a permissions problem?
Plus, the way it crashes is strange. It's a copy from an internal HDD to an external USB HDD. When it crashes (or just slows down to an unbelievable crawl, I think), the internal HDD (the one beind copied from) is running continuously, and the USB HDD is doing nothing.