Misccommand

Support requests, bug reports, questions etc.

Misccommand

Postby kiko67 » Thu May 15, 2014 15:53

Hi everybody
i'm trying to change the misccommand and create a new one to send notification to a textfile

I have written a script and i don't know how to load it in my command line
the code is this one
Code: Select all
#!/bin/sh
Date=$(date +%Y%m%d%H%M%S%N)
nomFic=notif$Date
 
cat <<eof > /tmp/notifications/$nomFic

"SERVICE ALERT:
Type Notification: $NOTIFICATIONTYPE$
Service: $SERVICEDISPLAYNAME$
Sur hote: $HOSTALIAS$
Groupe Service: $SERVICEGROUPALIAS$
Etat: $SERVICESTATE$
ID Service: $SERVICESTATEID$
Descriptif: $LONGSERVICEOUTPUT$
Date Heure: $SHORTDATETIME$"

eof

cp -u -p /tmp/notifications/$nomFic /tmp/notifications/${nomFic}_OK


Which is the command to load a script like this ???

Thx for ur help.
kiko67
starter
starter
 
Posts: 1
Joined: Wed May 07, 2014 09:28

Return to Support (NConf 1.3.0)

Who is online

Users browsing this forum: No registered users and 2 guests

cron