in reply to Re^8: time and mem usage of pgm
in thread time and mem usage of pgm

just prints out mem literally instead of the mem value.

Could you try the following 1-liner at your console; then copy&paste the results into a reply here please:

perl -wle" print `tasklist /nh /fi "PID eq $$"` =~ m[(\S+ K)$] }"

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^10: time and mem usage of pgm
by carolw (Sexton) on Mar 17, 2015 at 11:48 UTC

    can't find string terminator "`" anywhere before EOF at -e line 1

      Update: Error corrected.

      Sorry. I missed a set of quotes. Could you try this version please:

      perl -wle" print `tasklist /nh /fi \"PID eq $$\"` =~ m[(\S+ K)$]"

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

        ERROR: invalid option/parameter - 'eq'

        type TASKLIST /? for usage