[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Deleting files from windows file server

Hi,
 
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.


Thanks,
0
new_perl_user
Asked:
new_perl_user
  • 2
  • 2
1 Solution
 
wilcoxonCommented:
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).
0
 
new_perl_userAuthor Commented:
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....
0
 
FishMongerCommented:
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.
0
 
new_perl_userAuthor Commented:
Oh ok  but is there a way to connect remotely to this system and perform the deletion option. If so how?
0
 
FishMongerCommented:
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now