sami.strat has asked for the wisdom of the Perl Monks concerning the following question:
So, the html portion works separately, the variable works separately. Combining them results in a supernova of galactic proportion.#!/bin/perl use strict; use warnings; my $z = system("ps -ef | grep syslog | grep -v grep | wc -l"); use CGI; print CGI::header(); print "<html>"; print "<head><title>Test</title></head>"; print "<body>"; print "<h1>Number of processes - $z</h1>"; print "</body>"; print "</html>";
Any advice, alternatives, hints, etc... would be greatly appreciated.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: html && OS variables
by huck (Prior) on Jul 31, 2017 at 23:55 UTC | |
|
Re: html && OS variables
by haukex (Archbishop) on Aug 01, 2017 at 07:12 UTC | |
|
Re: html && OS variables
by karlgoethebier (Abbot) on Aug 02, 2017 at 08:17 UTC | |
|
Re: html && OS variables
by NetWallah (Canon) on Aug 02, 2017 at 03:06 UTC | |
|
Re: html && OS variables
by sami.strat (Novice) on Aug 01, 2017 at 01:55 UTC | |
by huck (Prior) on Aug 01, 2017 at 03:10 UTC |