Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-14-2013, 04:35 PM   PM User | #1
Marabunta
New to the CF scene

 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Marabunta is an unknown quantity at this point
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
Marabunta is offline   Reply With Quote
Old 01-15-2013, 06:22 AM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,452
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
can you make the log file have readonly/system attribs? this might prevent a write.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:11 PM.


Advertisement
Log in to turn off these ads.