Reputation: 99
I keep getting this error for my script below when I try to run it
The file “test.command” could not be executed because you do not have appropriate access privileges.
Tried changing the read only to read/write. Didn't work
for domain in $(pwgen -1A0B 6 10000); do echo -ne "$domain.com "; if [ -z "$(whois $domain.com | grep -o 'No match for')" ]; then echo -ne "Not "; fi; echo "Available for register"; done >> domains.txt
Any ideas?
Upvotes: 0
Views: 955
Reputation: 17054
You need to give execute permission as well to execute it.
chmod u+x file
Upvotes: 3