Displaying 18 results from an estimated 18 matches for "msg2".
Did you mean:
msg
2023 Jun 10
1
Fopen upsmon.pid - no such file or directory - Nut 2.8.0 built from source
...ot;upsched-cmd running"
UPS="ups at localhost"
STATUS=$( upsc $UPS ups.status)
CHARGE=$( upsc $UPS battery.charge)
CHMSG="[$STATUS] : $CHARGE%"
case $1 in
online)
logger -t upssched-cmd: "online"
MSG1="Subject: UPS online"
MSG2="\nCurrent status: $CHMSG $1"
cat /etc/nut/online.txt >/tmp/message
echo -e "$MSG2" >> /tmp/message
msmtp -t </tmp/message
;;
onbatt)
logger -t upssched-cmd: "onbatt"
;;
lowbatt)
logger -t upssched-cm...
2006 Feb 04
2
[PATCH] allow user to update changed key in known_hosts
...int salen;
char ntop[NI_MAXHOST];
char msg[1024];
@@ -674,71 +676,10 @@
error("No %s host key is known for %.200s and you "
"have requested strict checking.", type, host);
goto fail;
- } else if (options.strict_host_key_checking == 2) {
- char msg1[1024], msg2[1024];
-
- if (show_other_keys(host, host_key))
- snprintf(msg1, sizeof(msg1),
- "\nbut keys of different type are already"
- " known for this host.");
- else
- snprintf(msg1, sizeof(msg1), ".");
- /* The default */
- fp = key_fingerprint(ho...
2015 Jun 22
2
Small issue with DNSSEC / SSHFP
...y *previous_host_key = NULL;
static int matching_host_key_dns = 0;
+static int dns_secure = 0;
static pid_t proxy_command_pid = 0;
@@ -972,13 +973,18 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
fatal("%s: sshkey_fingerprint fail", __func__);
msg2[0] = '\0';
if (options.verify_host_key_dns) {
- if (matching_host_key_dns)
+ if (!matching_host_key_dns)
snprintf(msg2, sizeof(msg2),
- "Matching host key fingerprint"
+ "No matching host key fingerprint"
" found in DNS.\n&q...
2012 Dec 27
3
[PATCH] hostfile: list known names (if any) for new hostkeys
...i < num_user_hostfiles; i++)
+ load_hostkeys(key_hostkeys, NULL, host_key,
+ user_hostfiles[i]);
+ for (i = 0; i < num_system_hostfiles; i++)
+ load_hostkeys(key_hostkeys, NULL, host_key,
+ system_hostfiles[i]);
+ if (key_hostkeys->num_entries > 0) {
+ strlcat(msg2, "You have previously accepted "
+ "this key for the following hostnames:",
+ sizeof(msg2));
+ for (i = 0; i < key_hostkeys->num_entries; i++) {
+ strlcat(msg2, "\n\t", sizeof(msg2));
+ strlcat(msg2, key_hostkeys->entries[i].host,
+...
2024 Feb 23
0
Getting two notifications of nocomm-timer expired when USB cable is pulled from the UPS
...upssched-cmd: "online"
?????????????? if [ test -f $FILE ]; then
?????????????? echo
?????????????? else
?????????????? rm -f $FILE1
?????????????? rm -f $FILE2
?????????????? rm -f $FILE3
?????????????? rm -f $FILE4
?????????????? rm -f $FILE5
?????????????? echo >$FILE
?????????????? MSG2="\nCurrent status: $CHMSG?? $1"
?????????????? cat /etc/nut/online.txt >/tmp/message
?????????????? cat /tmp/message >>/etc/nut/logfile
?????????????? logger -t upssched-cmd: "online"
?????????????? echo -e "$MSG2" >> /tmp/message
?????????????? /usr/bin...
2005 Jan 24
4
Auto callout - reminder - is it possible?
I'm trying to get a script working on a website to send out automatic
email reminders to customers reminding them monthly to change furnace
filters. I haven't got one running successfully, yet.
That made me think - could it be done with a phone call using Asterisk?
A monthly automated phone call to remind people to change their furnace
filter?
I have no ability to figure this out
2004 Oct 03
0
[patch] tell user about hosts with same key
...olya
-------------- next part --------------
--- sshconnect.c 2004/10/02 21:27:29 1.1
+++ sshconnect.c 2004/10/02 22:01:52
@@ -716,7 +716,7 @@
"have requested strict checking.", type, host);
goto fail;
} else if (options.strict_host_key_checking == 2) {
- char msg1[1024], msg2[1024];
+ char msg1[1024], msg2[1024], msg_same_key[1024];
if (show_other_keys(host, host_key))
snprintf(msg1, sizeof(msg1),
@@ -724,6 +724,29 @@
" known for this host.");
else
snprintf(msg1, sizeof(msg1), ".");
+
+ HostList *keyhosts = NULL;
+ k...
2023 Jun 16
1
Dummy-ups cycles between online and onbatt every 5 minutes. (Nut 2.8.0)
...quot;/tmp/y"
FILE4="/tmp/z"
case $1 in
online)
logger -t upssched-cmd: "online"
if [[ -f $FILE ]];
then
echo
else
touch $FILE
rm -f $FILE1
rm -f $FILE2
rm -f $FILE3
rm -f $FILE4
MSG2="\nCurrent status: $CHMSG $1"
cat /etc/nut/online.txt >/tmp/message
echo -e "$MSG2" >> /tmp/message
msmtp -t </tmp/message
fi
;;
onbatt)
rm $FILE
logger -t upssched-cmd: "onbatt"
;;
lowbatt)...
2012 Apr 04
1
read.socket utils package : somthing is going wrong
...to subscribe ask and bid price on Italian stock
#this should be a push stream like:
#First stream:
#outcome=OK|item=MI.EQCON.2552
#Update stream:
#MI.EQCON.1|21|10|22|11|23|12|24|5|20|19|7.5
#MI.EQCON.2552|||||||||||7.3
#..................................................
#until the buffer is full.
msg2<-'function=subscribe|item=MI.EQCON.1|schema=ask1;bid1'
#open socket connection
socketPointer<-make.socket(host='localhost',port=5333,fail=TRUE,server=FALSE)
#send the command line
write.socket(socket=socketPointer,string=msg2)
#read data
read.socket(socket=socketPointer,max...
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
Dear R-core devs,
I hope this email finds you well.
Please see the proposed patch to R-devel below:
Scenario:
When loading a package using `library`, a package may not be found if the cases are not matching:
```
> library(ORG.Hs.eg.db)
Error in library(ORG.Hs.eg.db) :
there is no package called 'ORG.Hs.eg.db'
```
Suggested Patch:
Returns a message matching what
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
...ditionMessage.packageNotFoundError <- function(c) {
lib.loc <- c$lib.loc
msg <- c$message
package <- c$package
if(length(lib.loc)) {
allpkgs <- .packages(TRUE, lib.loc)
if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) {
msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w]))
return(paste(msg, msg2, sep = "\n"))
}
}
msg
}
This is something you can do yourself, though it is generally not a
good idea to define a method when you don't own either the generic...
2019 Jun 21
0
[External] Suggested Patch: Library returns matching installed packages when typo present
...ditionMessage.packageNotFoundError <- function(c) {
lib.loc <- c$lib.loc
msg <- c$message
package <- c$package
if(length(lib.loc)) {
allpkgs <- .packages(TRUE, lib.loc)
if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) {
msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w]))
return(paste(msg, msg2, sep = "\n"))
}
}
msg
}
This is something you can do yourself, though it is generally not a
good idea to define a method when you don't own either the generic...
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
...t upssched-cmd "The UPS has been gone for awhile"
;;
heartbeat-failure-timer)
MSG="NUT heart beat fails. $CHMSG"
# Email
MSG1="Hello, upssched-cmd reports NUT heartbeat has failed."
MSG2="Current status: $CHMSG \n\n$0 $1"
MSG3="\n\n$( ps -elf | grep -E 'ups[dms]|nut' )"
echo -e "$MSG1 $MSG2 $MSG3" | /usr/bin/mail -r "$EMAIL_FROM" \
-s "NUT heart beat fails. Currently $CHMSG" &q...
2018 Jul 06
4
Bash question
Hi All,
I am trying to build a command line with spaces in the argument. This
demonstrates what I am trying to do. Clearly the first two commands work
fine. However, the last 4 lines to not.
/opt/libreoffice5.4/program/soffice.bin --headless --convert-to csv
"/tmp/file.xlsx"
/opt/libreoffice5.4/program/soffice.bin --headless --convert-to csv
"/tmp/file 2.xlsx"
MSG="file
2019 Jun 21
0
Suggested Patch: Library returns matching installed packages when typo present
...<- function(c) {
> lib.loc <- c$lib.loc
> msg <- c$message
> package <- c$package
> if(length(lib.loc)) {
> allpkgs <- .packages(TRUE, lib.loc)
> if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) {
> msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w]))
> return(paste(msg, msg2, sep = "\n"))
> }
> }
> msg
> }
>
> This is something you can do yourself, though it is generally not a
> good idea to define a method whe...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...ched-cmd "The UPS has been gone for awhile"
;;
heartbeat-failure-timer)
MSG="NUT heart beat fails. $CHMSG"
# Email
MSG1="Hello, upssched-cmd reports NUT heartbeat has failed."
MSG2="Current status: $CHMSG \n\n$0 $1"
MSG3="\n\n$( ps -elf | grep -E 'ups[dms]|nut' )"
echo -e "$MSG1 $MSG2 $MSG3" | /usr/bin/mail -r "$EMAIL_FROM" \
-s "NUT heart beat fails. Currently $CHMSG"...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...ched-cmd "The UPS has been gone for awhile"
;;
heartbeat-failure-timer)
MSG="NUT heart beat fails. $CHMSG"
# Email
MSG1="Hello, upssched-cmd reports NUT heartbeat has failed."
MSG2="Current status: $CHMSG \n\n$0 $1"
MSG3="\n\n$( ps -elf | grep -E 'ups[dms]|nut' )"
echo -e "$MSG1 $MSG2 $MSG3" | /usr/bin/mail -r "$EMAIL_FROM" \
-s "NUT heart beat fails. Currently $CHMSG"...
2008 Apr 21
3
FIPS 140-2 OpenSSL(2007) patches
Hi,
I am happy to (re)send a set of patches for compiling OpenSSH 4.7p1 with
FIPS 140-2 OpenSSL.
These are based on previously reported patches by Steve Marquess
<marquess at ieee.org> and Ben Laurie <ben at algroup.co.uk>,
for ver. OpenSSH 3.8.
Note that these patches are NOT OFFICIAL, and MAY be used freely by
anyone.
Issues [partially] handled:
SSL FIPS Self test.
RC4,