Re: script bash ruleaza corect de mana si in crontab da syntax error

"Paul Lacatus (Personal)" <[email protected]>
Newsgroups gmane.org.user-groups.rlug.general
Message-ID <[email protected]>
Am gresit eu in cron cand am eliminat lansarea de python  . Sorry :)


On 1/10/2017 4:46 PM, Andrei Kovacs wrote:
> In cron trebuie sa fie ori /root/min_process, ori /bin/bash
> /root/min_process. Nu rulezi script de bash in python.
>
> On Tue, Jan 10, 2017 at 3:48 PM, Paul Lacatus (Personal) <
> [email protected]> wrote:
>
>> Hai ca nu mai inteleg nimic . Acest mare script :
>>
>> root@singureni:~# cat min_process
>> #!/bin/bash
>> # Publica contor mqtt
>> /usr/bin/python /root/mqtt_publish_janitza.py
>> # Publica status mqtt
>> /usr/bin/python /root/mqtt_publish_pins.py
>> # proceseaza alarme e-mail
>> /usr/bin/python /root/alarm_proc.py
>>
>> ruleaza corect de mana ./min_process
>>
>> dar lansat la minut in crontab da eroarea :
>>
>> Date: Tue, 10 Jan 2017 15:48:01 +0200 (EET)
>> From: Cron Daemon <root@singureni>
>> To: root@singureni
>> Subject: Cron <root@singureni> /usr/bin/python /root/min_process
>>
>>     File "/root/min_process", line 3
>>       /usr/bin/python /root/mqtt_publish_janitza.py
>>       ^
>> SyntaxError: invalid syntax
>>
>>
>>
>>
>>
>> _______________________________________________
>> RLUG mailing list
>> [email protected]
>> http://lists.lug.ro/mailman/listinfo/rlug
>>
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.