Article 5QGQH MX19.4 XFCE - Why bash doesn't work?

MX19.4 XFCE - Why bash doesn't work?

by
Snugbug
from LinuxQuestions.org on (#5QGQH)
To have some backups, I'm trying to copy some files to several target folders at once, using this bash:

Code:#!/bin/bash
# Replace "Dummy" (without "") with the number of the according issue number.
a=Dummy
cp "/home/user/Documents/issues/issue$a.pdf" "/media/user/BACKUP/BACKUPS 19.10.2017 (Win10+Linuxes)/Mint18.2-Home/user/Documents/issue/"
cp "/home/user/Documents/issues/issue$a.pdf" "/media/user/DATA/Old HDD's of old PC/ Int. HDD - (C&D&E of old PC)/LW-D/Documents/issues/"
cp "/home/user/Documents/issues/issue$a.pdf" "/media/user/DATA/Old HDD's of old PC/(K) HDDrive2Go1 (250GB) (LW-K of old PC)/Documents/issues/"
cp "/home/user/Documents/issues/issue$a.pdf" "/media/user/DATA/Old HDD's of old PC/(L) HDDrive2Go2 (500GB) (Mint-Partitions) & (LW-L of old PC)/Mint-Partitions/LM 17.3 MATE - Home/Documents/issues/"
cp "/home/user/Documents/issues/issue$a.pdf" "/media/user/DATA/Old HDD's of old PC/(M) HDDrive2Go3 (1 TB) (LW-M of old PC)/Documents/issues/"DATA and BACKUP are NTFS partitions which are successfully mounted at boot up by means of the fstab file.

The bash is set to be executable, I run it in a terminal, but still it doesn't work. Nothing is happening.

If I manually try one of the cp commands in the terminal, there's this message, instead:
Code:cp: Calling stat for '/home/user/Documents/issues/issue.pdf' not possible: File or folder not found.Does anybody know, what went wrong, please?

Rem.: The very same bash does run perfectly when executed in Mint.latest?d=yIl2AUoC8zA latest?i=prhW99iReeI:oBE5p4SKzZ8:F7zBnMy latest?i=prhW99iReeI:oBE5p4SKzZ8:V_sGLiP latest?d=qj6IDK7rITs latest?i=prhW99iReeI:oBE5p4SKzZ8:gIN9vFwprhW99iReeI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments