H
H
HighwayEU2020-11-28 09:24:38
linux
HighwayEU, 2020-11-28 09:24:38

How to make a script that replaces files?

Good time of the day! I need your help with a script on Linux.
The user runs a bash script on his computer:

xcopy \\192.168.0.5\linuxclient\*.* home\user\dekstop\linuxclient /d /y /s /v. (). // this is an example .bat

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nird, 2020-11-28
@Nird_o

To copy from Windows balls, you need to mount it in Linux first. For example in /mnt

sudo mount -t cifs //192.168.0.5/linuxclient /mnt -o user=testuser

And then just cp /mnt assignment.
And you can not copy at all. And immediately mount the ball where you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question