• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

How to update.

Scheduled Pinned Locked Moved Tutorials
35 Posts 21 Posters 89.8k Views 20 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    dam4 @Snille
    last edited by Dec 4, 2017, 11:03 AM

    @Snille
    I am new to Linex and I have copied your script exactly and I get the following error.
    -bash: update.sh: command not found

    I called the script update.sh and I was going to use it in a cron job after I tested it to make sure it worked. Can you tell me what I might have done wrong. Thank you in advance for your help.

    I 1 Reply Last reply Dec 4, 2017, 11:59 AM Reply Quote 0
    • I Offline
      izanbard @dam4
      last edited by Dec 4, 2017, 11:59 AM

      @dam4 It is likely that two things are wrong.

      First the script needs to be executable so please run:

      $ chmod u+x update.sh
      

      this will add execute permissions for the file owner to the file. Have a look at man chmod for more detail.

      The next thing is to make sure that Linux knows where to look for it. This can be quite a complicated subject involving descriptions of the $PATH environment variable and all sorts. But the easy way to do it is to add a relative or absolute path to the start of the command. So from the command prompt in the folder where the script exists try:

      $ ./update.sh
      

      where the . means “this folder”. For the cron tab through you might want to use the full path something like:

      0 2 * * * /full/path/to/file/update.sh
      

      Hope at least some of that is meaningful for you.

      D 1 Reply Last reply Dec 4, 2017, 12:06 PM Reply Quote 2
      • D Offline
        dam4 @izanbard
        last edited by Dec 4, 2017, 12:06 PM

        @izanbard
        Thank you. I did the chmod to make it executable but using the ./update.sh worked. Thank you again for your help.

        1 Reply Last reply Reply Quote 0
        • L Offline
          LucrativeRook62
          last edited by Jul 19, 2018, 8:46 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • A Offline
            Arjan Project Sponsor
            last edited by Jan 31, 2019, 9:08 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 3
            • 4
            • 4 / 4
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy