Can't run bash scripts

  • I ran in to the following problem:
    I have a document folder where i dump my documents in. But a want a script to sort all the file.
    I already experimented with the mv -v /documentspath/*.docx /documentspath/worddocs in cronjobs.
    But to make a cronjob for every type of file i want to sort is a lot of work.
    So i thought that i could make a bash script.
    But every time i try to run the script i go a -bash: /scriptlocation/script: Premission denied
    But i already run chmod 755 script and chmod +x script
    As a test i used a simple echo script found on the web.
    The script is located in my /media/drive/scripts/ folder.


    Thanks

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!