Insecure script command - perl XMPP script

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
witekp
Posts: 4
Joined: Saturday 24 September 2022 23:33
Target OS: Linux
Domoticz version:
Contact:

Insecure script command - perl XMPP script

Post by witekp »

I am trying to add an XMPP notification - it is described here:

https://www.domoticz.com/wiki/Installin ... ion_System

I get a message in my logs:

Code: Select all

Error: HTTP: Insecure script command!

I agree with that - wrong solution.

However, I am writing a perl script using the excellent library

Code: Select all

Net :: XMPP

It's the same!
Script call in domoticz:

Code: Select all

script://home/myuser/domoticz/scripts/xmpp.pl #FIELD1 #FIELD2 #TO "#MESSAGE"
How to solve the problem? Of course, running the script outside of domoticz works fine.
XMPP is very important to me. This is not related to the file permissions, I have tried to restrict them.
Has anyone encountered such a problem?
User avatar
gizmocuz
Posts: 2394
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Insecure script command - perl XMPP script

Post by gizmocuz »

The above script does not give any warning here
You are sure you are using that exact script line?
(For example, it is not allowed to use single quotes)
Quality outlives Quantity!
witekp
Posts: 4
Joined: Saturday 24 September 2022 23:33
Target OS: Linux
Domoticz version:
Contact:

Re: Insecure script command - perl XMPP script

Post by witekp »

Thank you for your response.
I didn't have any warnings - only two lines:

Code: Select all

022-10-11 23:33:29.415 Status: Notification: Domoticz test
2022-10-11 23:33:29.415 Error: HTTP: Insecure script command! 
but, when I turned on syslog in domoticz configuration, i have two additional lines:

Code: Select all

 Notification sent (http) => Failed
Active notification Subsystems: browser, fcm, http (3/13)
Maybe I don't have script: // support for notifications? But how can this support be included?

Quotation marks are not a problem, I tried with URL / Action without any parameters:

Code: Select all

script://home/myuser/domoticz/scripts/xmpp-t.pl
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests