Results 1 to 10 of 10

Thread: ftp script via cron

  1. #1
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1174
    Reputation
    40746

    Default ftp script via cron

    Gday,

    I have set up a timer job to change to an aurora channel at 2.30am every day to keep my AutoRoll.key & SoftCam.key files updeted on my dm7020.

    Now I would like to have a script file that would ftp those files to 3 other boxes also in the wee hours of the morning.

    Any clever person have an idea on the script file and running it via a cron job on the 7020?

    Thanks

    porkop



Look Here ->
  • #2
    Senior Member
    LeroyPatrol's Avatar
    Join Date
    Jan 2008
    Location
    N.E. Vic
    Posts
    16,229
    Thanks
    3,528
    Thanked 4,710 Times in 2,797 Posts
    Rep Power
    1669
    Reputation
    46551

    Default

    There is a nice little application that does what you want was it dvblogger?

    anyway a better solution would be to use newcamd and a ppua file on each box.

    Leroy
    XCRUISER HDSR600HD twin sat and terrestrial receiver $OOS *
    XCRUISER HDSR385 Avant - sold out$OOS UltraPlus DVB-T and DVB-S2 tuners $49 Remotes $OOS

  • #3
    Senior Member vk6xlr's Avatar
    Join Date
    Jan 2008
    Location
    Perth
    Posts
    1,078
    Thanks
    176
    Thanked 128 Times in 86 Posts
    Rep Power
    242
    Reputation
    528

    Default

    What image are you using on your DM7020?
    It may not have a ftp client installed.

    Best way to find out, type ftp at the command prompt and see what happens.
    Or 'find | grep ftp' If you see vsftpd, then that is the ftp server not client.
    Last edited by vk6xlr; 11-07-09 at 10:19 PM.

  • #4
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1174
    Reputation
    40746

    Default

    Quote Originally Posted by LeroyPatrol View Post
    There is a nice little application that does what you want was it dvblogger?

    anyway a better solution would be to use newcamd and a ppua file on each box.

    Leroy
    Yea I know lerot, I hve that but I dont run a computer all teh time and there is not a box on aurora all the time to utilsie it. I figure if I update daily they just ftping the file to the other boxes will surfiuce

  • #5
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1174
    Reputation
    40746

    Default

    Quote Originally Posted by vk6xlr View Post
    What image are you using on your DM7020?
    It may not have a ftp client installed.

    Best way to find out, type ftp at the command prompt and see what happens.
    Or 'find | grep ftp' If you see vsftpd, then that is the ftp server not client.
    ftp wprk coz I use dream control center's ftp all the time

    pli jade 2 anyway

  • #6
    Senior Member vk6xlr's Avatar
    Join Date
    Jan 2008
    Location
    Perth
    Posts
    1,078
    Thanks
    176
    Thanked 128 Times in 86 Posts
    Rep Power
    242
    Reputation
    528

    Default

    Quote Originally Posted by porkop View Post
    ftp wprk coz I use dream control center's ftp all the time
    Yes. That's because the DM7020 has a ftp server running permanently.
    You need to have a ftp client installed to allow the box to ftp to other boxes.

  • #7
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1174
    Reputation
    40746

    Default

    Quote Originally Posted by vk6xlr View Post
    Yes. That's because the DM7020 has a ftp server running permanently.
    You need to have a ftp client installed to allow the box to ftp to other boxes.
    true

  • #8
    Senior Member vk6xlr's Avatar
    Join Date
    Jan 2008
    Location
    Perth
    Posts
    1,078
    Thanks
    176
    Thanked 128 Times in 86 Posts
    Rep Power
    242
    Reputation
    528

    Default

    From a little research, Pli uses ftpput/ftpget.
    However, attempting to transfer a file with ftpput fails miserably.

    usage: ftpput remote.box.ip --user=username --password=password remote-file local-file

    Unfortunately you can't specify directories

    *** More info
    What you could do is this. On each client run a script that uses ftpget (provided it's installed. Pli has it.)

    Code:
    keyupdate.sh
    
    #!/bin/sh
    cd /var/keys
    ftpget -u user -p password server.box.ip SoftCam.Key /var/keys/SoftCam.Key
    ftpget -u user -p password server.box.ip AutoRoll.Key /var/keys/AutoRoll.Key
    Last edited by vk6xlr; 12-07-09 at 01:20 AM. Reason: Added ftpget

  • #9
    Senior Member
    LeroyPatrol's Avatar
    Join Date
    Jan 2008
    Location
    N.E. Vic
    Posts
    16,229
    Thanks
    3,528
    Thanked 4,710 Times in 2,797 Posts
    Rep Power
    1669
    Reputation
    46551

    Default

    Quote Originally Posted by porkop View Post
    Yea I know lerot, I hve that but I dont run a computer all teh time and there is not a box on aurora all the time to utilsie it. I figure if I update daily they just ftping the file to the other boxes will surfiuce
    that's why I mentioned using ppua files with newcamd. No need for pc etc.

    Leroy
    XCRUISER HDSR600HD twin sat and terrestrial receiver $OOS *
    XCRUISER HDSR385 Avant - sold out$OOS UltraPlus DVB-T and DVB-S2 tuners $49 Remotes $OOS

  • #10
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1174
    Reputation
    40746

    Default

    Quote Originally Posted by LeroyPatrol View Post
    that's why I mentioned using ppua files with newcamd. No need for pc etc.

    Leroy
    I think I might just do a "timer add " to each box to change to a aurora channel like the 7020 does. These are my daughters boxes and they are only
    interested in MTV but I bet any money that if they missed home and away and wanted to watch it on an aurora channel then it would be totally my fault that they havent got updates to watch it!!!!!

  • Similar Threads

    1. Dreambox Torrent Script
      By RHCP in forum Dreambox
      Replies: 13
      Last Post: 08-07-09, 11:58 PM
    2. any better proxy script?
      By noetic in forum Security and Privacy
      Replies: 2
      Last Post: 22-01-09, 08:33 PM
    3. setting up cron?
      By porkop in forum Dreambox
      Replies: 2
      Last Post: 11-09-08, 10:21 PM
    4. Looking fora script
      By okthen in forum Wafers, Pics and Codes
      Replies: 1
      Last Post: 19-02-08, 10:17 PM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •