cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
964
Views
0
Helpful
2
Replies

Unable to run script if containing folder has a space

sdonnelly1
Level 1
Level 1

We are attempting to run a script, but the file path has a space in the name:

/opt/TIDAL/order process/wait.sh

We are currently getting this error:

-bash: /opt/TIDAL/order: No such file or directory

2 Replies 2

Derrick Au
Level 4
Level 4

Hi sdonnelly1,

Try encapsulating entire file path string with single quotes '

BR,

Derrick Au

Hi sdonnelly,

Second time trying is a charm, use a backslash to escape special characters like a blank space. For example: /home/derrick/derrick test/test.sh

To run the shell script, type: /home/derrick/derrick\_test/test.sh (note the underscore is only shown here to represent clearly a blank space)

BR,

Derrick Au

Review Cisco Networking for a $25 gift card