remote file deletion using xargs
From: shihab (shihabvk_at_gmail.com)
Date: 09/29/05
- Next message: Enrique Perez-Terron: "Re: Newbie question: mtime find option doesn't run"
- Previous message: Bruce Barnett: "Re: problem in my linux shell"
- Next in thread: Chris F.A. Johnson: "Re: remote file deletion using xargs"
- Reply: Chris F.A. Johnson: "Re: remote file deletion using xargs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Sep 2005 04:42:10 -0700
Hi,
Please help me...
I am creating a string of filenames with absolute path and deleting
those files situated in the remote server using ssh .. but it doesnot
work..
Can anyone help me...
here is my code
for FileName in ${myDire}
do
Tmp=`basename $FileName`
DelFiles="${DelFiles} "${SourceDirectory}/${Tmp}
done
#DelFiles contain files to be deleted with abolute path
ssh USer/Pwd@Domain echo ${DelFiles} | xargs rm
This statement gives 0 as the return value , but not deleting any of
those files
Thanks in advance
Shihab
- Next message: Enrique Perez-Terron: "Re: Newbie question: mtime find option doesn't run"
- Previous message: Bruce Barnett: "Re: problem in my linux shell"
- Next in thread: Chris F.A. Johnson: "Re: remote file deletion using xargs"
- Reply: Chris F.A. Johnson: "Re: remote file deletion using xargs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|