Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have made a script and called it cp-to-Dropbox. It goes as follows:

#!/bin/bash


rm -rd /home/me/Documents/Link\ to\ aus/ELE490/hw/SHARED\ OUTBOX/* 

cp -r /home/me/Documents/Link\ to\ aus/ELE490/hw/Minutes /home/me/Documents/Link\ to\ aus/ELE490/hw/MMAPs/Outlines /home/me/Documents/Link\ to\ aus/ELE490/hw/My\ part /home/me/Documents/Link\ to\ aus/ELE490/hw/SHARED\ OUTBOX

When I run this in the terminal, it does what I want. The problem is, it won't work when I set a keyboard shortcut to my script.

Any ideas?

share|improve this question
    
Did you made it executable? –  the_Seppi Nov 9 '13 at 11:14
    
Are you running your script like sh cp-to-Dropbox or ./cp-to-Dropbox? –  Bolt64 Nov 9 '13 at 11:21
    
Yes it is executable. I put it in my bin folder so I can just call it from the terminal by its name. –  user137017 Nov 9 '13 at 16:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.