Reputation: 259
I came across a command like :-
/bin/bash -c LOCALHOST:/path/to/script --argument
and it gives a error like /path/to/script
doesn't exist,but /path/to/script
exists.
I want to know how -c
option works.
Upvotes: 0
Views: 44
Reputation: 5658
You have to do it like this
$ /bin/bash -c '/path/to/script --argument'
Inside these single quotes is basically the line you would write before you hit Enter.
Upvotes: 2