Welcome, Guest. Please login or register.

Author Topic: Multithread / crontab problem  (Read 202 times)

migas62

  • Newbie
  • *
  • Posts: 11
    • View Profile
Multithread / crontab problem
« on: July 10, 2017, 07:55:48 PM »
Hi,

i installed NeDi on Centos 7 following the instructions provided by the link on your website.
I'm trying to configure multi-thread on cron like:

0,30 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (0)' > /tmp/nedi0-`date +\%H`.run 2>&1&
1,31 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (1)' > /tmp/nedi1-`date +\%H`.run 2>&1&
2,32 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (2)' > /tmp/nedi2-`date +\%H`.run 2>&1&
3,33 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (3)' > /tmp/nedi3-`date +\%H`.run 2>&1&
4,34 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (4)' > /tmp/nedi4-`date +\%H`.run 2>&1&
5,35 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (5)' > /tmp/nedi5-`date +\%H`.run 2>&1&
6,36 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (6)' > /tmp/nedi6-`date +\%H`.run 2>&1&
7,37 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (7)' > /tmp/nedi7-`date +\%H`.run 2>&1&
8,38 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (8 )' > /tmp/nedi8-`date +\%H`.run 2>&1&
9,39 7-22 * * * /var/nedi/nedi.pl -Smvj -fn -P2 -Ya -A 'RIGHT(INET_NTOA(devip), 1) IN (9)' > /tmp/nedi9-`date +\%H`.run 2>&1&

  • In System/Files/crontab i try to add all the lines at once but when i click on the write button it gives the following error: Write /var/nedi/inc/crontab (2065 bytes) OK  / Crontab Update Errors
  • If i add one line and click write it was ok. But i can add only 9 lines with this method, the 10th gives the same error.
  • Everything i add in command line (crontab -e -u nedi) works as expected
  • On System/Files/crontab nothing runs
I'm a newbie on Linux, can you help me?
-Miguel