18 reputation
6
bio website
location
age
visits member for 1 year, 9 months
seen Apr 22 at 4:39

Jun
17
awarded  Popular Question
Mar
22
accepted Commands in script do not run, but in terminal they do
Mar
21
answered Commands in script do not run, but in terminal they do
Mar
20
comment Commands in script do not run, but in terminal they do
The Terminal windows opens as if it is going to do something then closes almost instantly, hence it appears to flash. Here is the error when I run the script from terminal /home/user/Desktop/copyword.sh bash: /home/user/Desktop/copyword.sh: /bin/sh^M: bad interpreter: No such file or directory
Mar
20
comment Commands in script do not run, but in terminal they do
the ` at the start of the script was just meant to add the code tag here on the forum sorry. I have a specific need to delete first. This code will be modified for different folders and files. So the delete command must come first.
Mar
20
revised Commands in script do not run, but in terminal they do
deleted 2 characters in body
Mar
20
asked Commands in script do not run, but in terminal they do
Mar
20
awarded  Scholar
Mar
20
accepted Copying from mount share drive to local folder through script
Mar
20
comment Copying from mount share drive to local folder through script
the following command worked - cp -rfv /home/user/Documents/ExerciseShare/ExerciseFiles/Word/ /home/user/Documents/Exercise/ thankyou for all your help!
Mar
20
comment Copying from mount share drive to local folder through script
I think it must have been the %20 in the originals. I restarted the machine and used the exact same command and it worked!
Mar
20
awarded  Analytical
Mar
20
comment Copying from mount share drive to local folder through script
OP updated. rm command resolved thankyou. Still issues with cp.
Mar
20
awarded  Editor
Mar
20
awarded  Supporter
Mar
20
revised Copying from mount share drive to local folder through script
added 254 characters in body
Mar
15
awarded  Student
Mar
15
asked Copying from mount share drive to local folder through script