Re: Deleting files remotely
- From: "NewbeeUnix" <subind123@xxxxxxxxx>
- Date: 29 Dec 2006 05:57:18 -0800
1 solution:
Write a shell script will telnet to remote machine and go the requisite
directory and delete all the files.
execute the shell script using system function in perl.
Regards,
Subind.
Peter Le wrote:
Hi,
I'm new at Perl and need help on how to delete files remotely.
I have system A, system B and system C.
System B:
files: 1.txt, 2.txt, 3.txt and folderA
System C:
files: 1.txt, 2.txt, 3.txt, folderA and folderB
From system A, I would like to connect to system B and C and delete all
files and folder except for folderA.
Any help is greatly appreaciated.
Thanks,
Pete
.
- Follow-Ups:
- Re: Deleting files remotely
- From: nobull67@xxxxxxxxx
- Re: Deleting files remotely
- References:
- Deleting files remotely
- From: Peter Le
- Deleting files remotely
- Prev by Date: Re: Determine script full path.
- Next by Date: Re: Hashes of Hashes
- Previous by thread: Deleting files remotely
- Next by thread: Re: Deleting files remotely
- Index(es):