Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on Help installing memory script in the VPS & Dedicated forum
Ok!! I have actually figured some stuff out since my last post in the memory script thread. I guess I messed up but the file ...

  1. #1
    JPC Member
    Join Date
    Oct 2007
    Posts
    7

    Help installing memory script

    Ok!!

    I have actually figured some stuff out since my last post in the memory script thread.

    I guess I messed up but the file vmem is in the right directory I think. I can get to it like this

    cd
    cd bin
    ls
    vmem is listed and is green

    If i vi vmem, all the code is there, so I think I did that right. Pretty simple, just vi vmem, paste code, hit escape, hit ZZ enter, and its saved.

    If I type vmem it tells me bash: vmem: command not found. I try and do chmod but it doesnt seem to work. Any hints as to what has happened?

  2. #2
    Free Knowledge
    Join Date
    Aug 2006
    Posts
    33
    Hi,

    make sure you typed each of this 5 lines some times it continue in new line cause of copy past operation so fix it up and save your work.

    #!/bin/sh

    let GMEM=`grep vmguarpages /proc/user_beancounters | awk '{print$4}'`/1024*4
    let CMEM=`grep physpages /proc/user_beancounters | awk '{print$2}'`/1024*4

    echo "Memory limit...: $GMEM MB"
    echo "Current usage..: $CMEM MB"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •