Dreambox 500 wget script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cyber-spy
    Newbie
    • Dec 2009
    • 3

    #1

    Dreambox 500 wget script

    Hi there

    Has anyone a link to a wget script that i can run a cronjob on.

    I know what i need in the script and can make it all work from the command line.

    Basics are, i have a few friend thats can not get to grips with FTPing Clines on to there boxes, so i was going to buy the clines then add them to a file that would be uploaded on to my server, then i could get the cron to fetch the new file every x mins.

    This is what i have done

    #!/bin/sh

    cd /var/etc
    rm test.txt
    wget "http://exampledomain.co.uk/test.txt"
    cd /
    echo "Done"

    But when i put in to a file called .sh it fails, i get -sh: cccamwget.sh not found


    I must have missed something
    Thanks in advance

    A
    Last edited by cyber-spy; 27 September, 2010, 18:41.
  • cyber-spy
    Newbie
    • Dec 2009
    • 3

    #2
    Originally posted by cyber-spy
    Hi there

    Has anyone a link to a wget script that i can run a cronjob on.

    I know what i need in the script and can make it all work from the command line.

    Basics are, i have a few friend thats can not get to grips with FTPing Clines on to there boxes, so i was going to buy the clines then add them to a file that would be uploaded on to my server, then i could get the cron to fetch the new file every x mins.

    This is what i have done

    #!/bin/sh

    cd /var/etc
    rm test.txt
    wget "http://exampledomain.co.uk/test.txt"
    cd /
    echo "Done"

    But when i put in to a file called .sh it fails, i get -sh: cccamwget.sh not found


    I must have missed something
    Thanks in advance

    A
    All sorted the above works just did not give it the correct file permissions

    A

    Comment

    Working...