Mv after tar in a shell script problems

2005-05-18 Thread Gary R. Van Sickle
Am I losing my mind, or shouldn't this just work(tm) in a shell script?: #!/bin/sh # ^^ behaves the same if it's /bin/bash tar xvjf file.tar.bz2 mv dir_name_file.tar.bz2_untars_to new_dir_name ??? About half the time I get Permission denied from mv, the other half it works fine. If I do

RE: Mv after tar in a shell script problems

2005-05-18 Thread Gary R. Van Sickle
Am I losing my mind, or shouldn't this just work(tm) in a shell script?: #!/bin/sh # ^^ behaves the same if it's /bin/bash tar xvjf file.tar.bz2 mv dir_name_file.tar.bz2_untars_to new_dir_name ??? About half the time I get Permission denied from mv, the other half it works

Re: Mv after tar in a shell script problems

2005-05-18 Thread Brian Dessent
Gary R. Van Sickle wrote: ...and, if I change the mv to a loop which keeps trying if there's a failure: while ! mv dir_name_file.tar.bz2_untars_to new_dir_name; do echo retrying move...; done it will eventually work after a few iterations. I... huh? I'll brew up a test case, this

RE: Mv after tar in a shell script problems

2005-05-18 Thread Gary R. Van Sickle
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Dessent Sent: Wednesday, May 18, 2005 4:31 AM To: cygwin@cygwin.com Subject: Re: Mv after tar in a shell script problems Gary R. Van Sickle wrote: ...and, if I change the mv to a loop

Re: Mv after tar in a shell script problems

2005-05-18 Thread Corinna Vinschen
On May 18 02:30, Brian Dessent wrote: Gary R. Van Sickle wrote: ...and, if I change the mv to a loop which keeps trying if there's a failure: while ! mv dir_name_file.tar.bz2_untars_to new_dir_name; do echo retrying move...; done it will eventually work after a few iterations.

Re: Mv after tar in a shell script problems

2005-05-18 Thread Corinna Vinschen
On May 18 04:57, Gary R. Van Sickle wrote: Unless tar is doing something like untarring to a temp directory and then doing a shell-api move that it doesn't wait for. I don't know. I'll get a test case together and... well, I'm sure then the problem will mysteriously vanish. ;-) What about

Re: Mv after tar in a shell script problems

2005-05-18 Thread Brian Dessent
Corinna Vinschen wrote: Sounds not convincing. If the OS isn't able to deal with such a basic situation, it's seriously unusable. Windows might have some annoying properties, but it's certainly usable. I'm just running a script which desperatly tries to reproduce the above problem, but

RE: Mv after tar in a shell script problems

2005-05-18 Thread Gary R. Van Sickle
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corinna Vinschen Sent: Wednesday, May 18, 2005 5:01 AM To: cygwin@cygwin.com Subject: Re: Mv after tar in a shell script problems On May 18 04:57, Gary R. Van Sickle wrote: Unless tar is doing

Re: Mv after tar in a shell script problems

2005-05-18 Thread Brian Dessent
Gary R. Van Sickle wrote: ...only, disabling it and even rebooting don't change anything, I still get Permission Denieds. Gat dang, and I was just itching to put McAff... er, I mean, a certain virus scanner manufacturer... back at the top of The List I don't know if it matters in this case

Re: Mv after tar in a shell script problems

2005-05-18 Thread Corinna Vinschen
On May 18 05:45, Gary R. Van Sickle wrote: What about using strace or, better, gdb? Does it even occur under strace? As I said, WJFFM for hundreds of iterations. Corinna Oh wait waitwaitwaitwaitwait... What this looks more like is my old nemesis - The Nosy Virus Scanner! Lessee

RE: Mv after tar in a shell script problems

2005-05-18 Thread Robb, Sam
Oh wait waitwaitwaitwaitwait... What this looks more like is my old nemesis - The Nosy Virus Scanner! Lessee here... Yep, still doing it, let's check if... ACTIVESHIELD HAS TURNED ITSELF ON AGAIN... ...only, disabling it and even rebooting don't change anything, I still get

RE: Mv after tar in a shell script problems

2005-05-18 Thread Gary R. Van Sickle
Oh wait waitwaitwaitwaitwait... What this looks more like is my old nemesis - The Nosy Virus Scanner! Lessee here... Yep, still doing it, let's check if... ACTIVESHIELD HAS TURNED ITSELF ON AGAIN... ...only, disabling it and even rebooting don't change anything, I still get