• November 01, 2024, 04:34:07 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Add a new line on crontab -e  (Read 5926 times)

pouda21

  • Level 1 Member
  • *
  • Posts: 3
Add a new line on crontab -e
« on: August 16, 2013, 12:27:17 PM »

Hi Guys !!  ;D ;D

I just bought the Dlink DNS 325 for the remote backup functionality and surprise !! it's not working with my actual web storage provider .... so my idea is to add a new job on crontab -e with a nice rsync etc...
but when i tried to move in i got these nice characters when i push arrows on my keyboard...



in yellow

so i found the way of adding a new line in by this command line

Code: [Select]
crontab -l > file; echo '59 23 * * * /mnt/HD/HD_a2/Nas_Prog/rsynctoOLS.sh' >> file; crontab file
but it's not working because when i restart the nas, the crontab list is reset to default and unfortunatly without my settings


do you know how can i fix this problem ?

thx for your help and sorry for my poor english.. ;D
« Last Edit: August 16, 2013, 12:29:36 PM by pouda21 »
Logged

priitv8

  • Level 3 Member
  • ***
  • Posts: 250
Re: Add a new line on crontab -e
« Reply #1 on: August 17, 2013, 01:59:39 PM »

I'm using FFP's startup script to amend the config files that get restored from Flash media on every reboot.
Logged

pouda21

  • Level 1 Member
  • *
  • Posts: 3
Re: Add a new line on crontab -e
« Reply #2 on: August 17, 2013, 11:34:20 PM »

Hi,

ok it could be a solution... but where can i find this startup script on the NAS filesystem ?

Thx in advance..

Bye
Logged

priitv8

  • Level 3 Member
  • ***
  • Posts: 250
Re: Add a new line on crontab -e
« Reply #3 on: August 18, 2013, 12:26:14 PM »

Code: [Select]
/ffp/etc/fun_plug.init is a systemwide script
Code: [Select]
/ffp/etc/fun_plug.local you can create as your personal script
Logged

pouda21

  • Level 1 Member
  • *
  • Posts: 3
Re: Add a new line on crontab -e
« Reply #4 on: August 18, 2013, 09:40:28 PM »

Hi !

I'm probably idiot but i'm not able to find this folder /ffp/etc/ at root level on the filesystem.... do i need to create /install something ?

Thx for your help and enjoy the day
Logged

japa-fi

  • Level 1 Member
  • *
  • Posts: 23
Re: Add a new line on crontab -e
« Reply #5 on: August 19, 2013, 12:13:30 PM »

Logged

priitv8

  • Level 3 Member
  • ***
  • Posts: 250
Re: Add a new line on crontab -e
« Reply #6 on: August 20, 2013, 06:08:59 AM »

/ffp at root level is a symlink. In reality FFP resides in
Code: [Select]
/mnt/HD/HD_xx/ffp
Logged