Quantcast
Viewing all articles
Browse latest Browse all 20019

Re: Can SAM pull data from the output file of a cron job?

Put this in a Linux monitor:

 

#!/bin/bash

 

Value=`who | cut -f1 -d " " | sort | uniq | wc -l`

 

  echo "\nStatistic: $Value";

  echo "\nMessage: This is your value"

 

 

 

Obviously you can change the \nMessage to whatever pleases you.   Note that before the who and after the -l is the back ticks.


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>