monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escape quotes


From: Kizito Porta Balanyà
Subject: Re: Escape quotes
Date: Tue, 27 Jan 2015 17:23:41 +0100

Hello, using simple quotes with the following sentences:

check program checkService_Symantec with path
'/usr/local/KSR/service.sh query "Symantec Antivirus" Rtvscan.exe'
    if status != 0 then exec '/usr/local/KSR/service.sh start
"Symantec Antivirus" Rtvscan.exe'

Generates a core dump:
/etc/monitrc:89: Program does not exist: ''/usr/local/KSR/service.sh
query "Symantec Antivirus" Rtvscan.exe''
/etc/monitrc:89: Program does not exist: ''/usr/local/KSR/service.sh
query "Symantec Antivirus" Rtvscan.exe''
/etc/monitrc:90: Program does not exist: ''/usr/local/KSR/service.sh
start "Symantec Antivirus" Rtvscan.exe''
AssertException: File '/usr/local/KSR/service.sh query "Symantec
Antivirus" Rtvscan.exe' does not exist
 raised in Command_new at src/system/Command.c:352
Aborted (core dumped)

Thanks a lot.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]