QSHELL:
rm -rf /Shared/garry/Work
rm: 001-2136 Error found removing link to file /Shared/gman/Work. Dire
ctory not empty.
(although according to 'ls' in the qsh, it is empty)
DEL:
DEL OBJLNK('/Shared/gman/Work')
Requested operation not allowed. Access problem.
I think the problem is that the login.c file appears to be called
login.c\260, it does not show up in QSH at all, but over NFS it
appears either like the above or login.c, and then a little
superscript hollow circle which I cannot replicate on my keyboard
(when I paste from the clipboard it comes out with the \260.
So I'm guessing that somehow I put a character out of the EBCDIC range
onto a filename, and it does not like that. Any tips on how to remove?
Thanks
Garry
Rikkie
"Garry" <bandits...@yahoo.co.uk> wrote in message
news:b5652016.0310...@posting.google.com...
Thanks for the tip, but it still won't shift! WRKLNK reports 'Object
not found'when I try to remove the file with the odd character in it,
login.c shows up in the list of files, but with the green rectangle
on the end, which I guess is the odd character. I select it to Edit,
Remove, or Display, and it just says Object not found.
I cannot erase the parent directory as it reports that it contains
objects.
Thanks
Garry
Sometimes, if users have access to the IFS through Windows, files with
strange names appear in the IFS. For example, "C:{filename}", etc.
If you try to delete them using the WRKLNK command and option 4, you get an
error message that the file doesn't exist even though it appears in the
directory listing.
Here's how to delete them:
http://search400.techtarget.com/tip/1,289483,sid3_gci774877,00.html
I hope this will help you. I also added this tip to my website. You are
always welcome.
Rikkie. http://users.skynet.be/vecelzo/
"Garry" <bandits...@yahoo.co.uk> wrote in message
news:b5652016.03103...@posting.google.com...
Thanks for this, unfortunatly my AS/400 cannot seem to FTP to itself,
or indeed anything else, so I cannot try it out. Once I sort that out,
I'll give it a go.
Thanks again.
Garry
>Hi,
>I made a directory in the IFS, called 'Work', I made it using mkdir on
>my UNIX machine, into a directory which my AS/400 exports with NFS. I
>touched a file into the directory called 'login.c', but now I cannot
>remove the directory 'Work' using either QSHELL, the 'DEL' command,
>the 'DEL' command over FTP or rm -rf over NFS. The error messages are
>as follows:
>
>QSHELL:
>rm -rf /Shared/garry/Work
>rm: 001-2136 Error found removing link to file /Shared/gman/Work. Dire
>ctory not empty.
>
>(although according to 'ls' in the qsh, it is empty)
>
How about this (in qsh):
cd /Shared/garry/Work
rm -f *
cd ..
rmdir Work
Should work with even the weirdest of filenames...
Arild
PS: You might also try 'rm -f .*' if the above fails...
--
Arild Skår Tlf: 67 12 44 64
AS Computanse Fax: 67 12 31 17
Ballerud Alle 1 Mob: 90 15 83 56
1363 Høvik
Did you ever try to use a wildcard to delete the "login.c\260" file?
So you may try to use:
DEL OBJLNK('/Shared/gman/Work/login.c?260')
or
DEL OBJLNK('/Shared/gman/Work/login*')
or
DEL OBJLNK('/Shared/gman/Work/*')
(be carefully with that one since it will remove all files from a
directory)
Before using the DEL command you should (must) use the WRKLNK command to
ensure you are not going to delete to many files.
WRKLNK OBJ('/Shared/gman/Work/login.c?260')
WRKLNK OBJ('/Shared/gman/Work/login*')
WRKLNK OBJ('/Shared/gman/Work/*')
I did a little test using WRKLNK '/HOME/RADDATZ/TEST_F8*' and then DEL OBJLNK('/HOME/RADDATZ/TEST_F8*') to delete files. The result was that 4 files have been deleted (as
expected).
Thomas Raddatz.
Gary,
Another option is using Iseries Navigator and go into the directory and
remove the file.
Does ls -a show anything in QSH?
A second option use "login.c\260" on the nfs share on the unix box. ls -a
should work to find the file.
Regards,
Have you tried OS/400 commands? If the normal option 4 doesn't work on this
file, try the following (I think this was available from v5r1 onwards):
Use WRKLNK and navigate to the directory
Instead of using option 5 to display the Work directory, use option 2 to
edit it (sounds weird, but it works)
Try deleting the file from here.
If this fails, go back to Work's parent directory and edit that then use
option 9 on the Work directory to do a recursive delete.
Hi Arild,
Thanks for trying, but it still will not go! If I go into the QSH, do
an 'ls -l' inside the folder, there is nothing there. But if I do
rmdir on the folder, it says it's not empty!
Have to ty something else...
Cheers
Garry
Remember, files beginning with "." are not listed by ls unless you
add the -a option.
--
Dan Hicks
Love does not consist in gazing at each other, but in looking
outward together in the same direction. --Antoine de Saint-Exupery
Hi Garry
You can try using:
EDTF /Shared/garry/Work
I find that this works most of the time and is great at finding hidden
UNIX files (found an old profile.h this way).
Let me know
Steve P
The opinions expressed may not be those of my employer
Should have mentioned that this only works on files. Once you delete the
file with EDTF then use WRKLNK to delete the actual folder.
> On Tue, 04 Nov 2003 09:14:56 -0500, Steve P <an...@anon.com> wrote:
[...]
>> You can try using:
>>
>> EDTF /Shared/garry/Work
>>
>> I find that this works most of the time and is great at finding hidden
>> UNIX files (found an old profile.h this way).
>>
>> Let me know
>>
>> Steve P
>> The opinions expressed may not be those of my employer
>
>
>
> Should have mentioned that this only works on files. Once you delete
> the file with EDTF then use WRKLNK to delete the actual folder.
Why? with edtf you're able to delete folders, inner files and inner folders as
well using option 9 (delete recursively)
--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre
Spammers loop schijten/Spammers macht Euch vom Acker