Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Asus Router Programming

    I have an asus router and I want to delete a log file on my hdd which the download master is creating.
    My HDD is directly connected to the router, so I have an config.json and I thought i could add sth. to make it delete the log file himself.

    The problem is I have no idea of json and thats why I am here.
    So if you could write me some lines to delete a folder every few seconds or know how to stop him creating(didnt find out where the creation code is to delete it) I would be very happy.

    Thanks in advance


    {
    "alt-speed-down": **,
    "alt-speed-enabled": **,
    "alt-speed-time-begin": **,
    "alt-speed-time-day": **,
    "alt-speed-time-enabled": **,
    "alt-speed-time-end": **,
    "alt-speed-up": **,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": **,
    "dht-enabled": **,
    "download-dir": "/tmp/mnt/M_1TB/Download2/Complete",
    "encryption": **,
    "idle-seeding-limit": **,
    "idle-seeding-limit-enabled": **,
    "incomplete-dir": "/tmp/mnt/M_1TB/Download2/InComplete",
    "incomplete-dir-enabled": **,
    "lazy-bitfield-enabled": **,
    "lpd-enabled": **,
    "message-level": **,
    "open-file-limit": **,
    "peer-congestion-algorithm": "",
    "peer-limit-global": **,
    "peer-limit-per-torrent": **,
    "peer-port": **,
    "peer-port-random-high": ****,
    "peer-port-random-low": ****,
    "peer-port-random-on-start": **,
    "peer-socket-tos": "**",
    "pex-enabled": **,
    "port-forwarding-enabled": **,
    "preallocation": **,
    "prefetch-enabled": **,
    "ratio-limit": **,
    "ratio-limit-enabled": **,
    "rename-partial-files": **,
    "rpc-authentication-required": **,
    "rpc-bind-address": "**",
    "rpc-enabled": **,
    "rpc-password": "{***",
    "rpc-port": **,
    "rpc-url": "/transmission/",
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1,*.*.*.*",
    "rpc-whitelist-enabled": true,
    "script-torrent-done-enabled": **,
    "script-torrent-done-filename": "",
    "speed-limit-down": **,
    "speed-limit-down-enabled": **,
    "speed-limit-up": **,
    "speed-limit-up-enabled": **,
    "start-added-torrents": **,
    "trash-original-torrent-files": **,
    "umask": **,
    "upload-slots-per-torrent": **
    }
    Last edited by Marabunta; 01-14-2013 at 04:41 PM. Reason: code of the config.json

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,189
    Thanks
    10
    Thanked 569 Times in 550 Posts
    can you make the log file have readonly/system attribs? this might prevent a write.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5


  •  

    Posting Permissions

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