Deleting files from windows file server

Posted on 2011-05-09
Last Modified: 2012-05-11
How can I delete files which reside on  windows file server while running the perl script on unix server.

I mean while declaring the path for deletion can I mention like this.

my $path = "d:/test/files" then will be able to delete or is there any other approach.

Question by:new_perl_user
    LVL 26

    Expert Comment

    Is the Windows server file system mounted on the Unix server?  If not, you will have to remotely connect to the Windows server (how likely depends on what services/servers you have running on the Windows machine).

    Author Comment

    Spoke to system people and said they can't mount it due to various reasons. They mentioned I need to ssh. But no clue how to do it in perl, any help pleasee....
    LVL 28

    Expert Comment

    You can install openssh on Windows.

    Once openssh is installed, you will be able to connect to the Windows server and run the command to delete the files.

    Author Comment

    Oh ok  but is there a way to connect remotely to this system and perform the deletion option. If so how?
    LVL 28

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now