Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Sequential commands while retaining previous environment

$
0
0
I do some pretty weird stuff through the SshCommand. It's tricky, but pretty much anything can be done:
r=0; for R in $(dmidecode -t 17 | grep Size|grep MB|awk '{print $2}'); do r=$[ $r + $R ]; done; echo $r MB
This sums up all the physical DIMM's reported in a server and produces a single output such as "32768 MB" which I can compare to via C#.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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