I got the task to write a script to do some tasks, one of those is to copy some files from the local machine to a server directory.
Now this isn't exactly my area of expertise, so I was wondering if anyone could give me some advice/pointers.
They gave me the following requirements:
1) same script needs to be capable of copying to a Windows AND Unix machine
2) no files should be modified (such as .rhost)
3) Bat file for the Windows machines, Shell script for the Unix machines
It doesn't matter if I read whether the target machine is Windows/Unix from the command line so an if/else is possible.
But I have no idea on how to start with this without having to modify the rhost file so any input is appreciated.
Copyright Notice:Content Author:「Jack」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/5165049/bat-shell-file-copy-to-unix-windows