1834726 Members
2721 Online
110069 Solutions
New Discussion

Re: mv command hang

 
SOLVED
Go to solution
John Demeny
Advisor

mv command hang

Long story short -
We have remote users connecting via Telnet, then running a script to process a file they have uploaded. At the end of the process, the file is renamed using a mv command. About twice a week, the mv command will hang. ll shows mv has occured but process won't let go. Kill the process and the script proceeds normally. No error msgs given.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: mv command hang

Short answer -

Try a cp followed by a rm.


Pete

Pete
Ravi_8
Honored Contributor

Re: mv command hang

Hi,

could you check swap space at that moment
never give up
James Murtagh
Honored Contributor
Solution

Re: mv command hang

Hi John,

We really need a bit more info here:

1) What OS
2) What filesystem type was the file on
3) What filesystem type is the file moving to
4) Is it crossing filesystems
5) Do the permissions look ok after the move

Point 5 is there as the mv command doesn't have a lot to do after the file is relocated, just closes some descriptors, changed the permissions on the new file and unlinks the old one. If you have tusc installed this would be the tool to use in this case.

Regards,

James.