0

This seems simple but I can't seem to figure it out. I am trying to write a script to mount a drive on startup. the command I want to run is:

google-drive-ocamlfuse ~/gdrive

But i want it to run each time i start the computer up. I have tried to write a script and can't seem to figure it out. Help would be much appreciated. Thanks in advance

Avinash Raj
  • 77,204
  • 56
  • 214
  • 254
frost58
  • 23
  • 4
  • You can also add the script on startup, search for startup and add the script there. – Qasim Dec 18 '13 at 05:14
  • 1
    Possible duplicate of[why-doesnt-rc-local-run-all-my-commands-and-what-can-i-do-about-it](http://askubuntu.com/questions/239600/why-doesnt-rc-local-run-all-my-commands-and-what-can-i-do-about-it) – sourav c. Dec 18 '13 at 05:17
  • yes i do. I also tried running it from the startup applications and it didn't work either. I imagine I wrote it wrong. I put #!/bin/bash at the top and saved it as a .sh. – frost58 Dec 18 '13 at 05:19
  • I figured it out. stupid mistake, forgot to change permissions. As you can tell this is new – frost58 Dec 18 '13 at 05:27
  • @frost58 glad you figured it out! can you please write it out as an answer? – virtualxtc Dec 18 '13 at 06:19

1 Answers1

1

To add the script to the statup I wrote a bash script and found it with the startup applications program. My problem was changing the scripts permissions to executable before running it

Zanna
  • 69,223
  • 56
  • 216
  • 327
frost58
  • 23
  • 4