Help with /tmp dir PLEASE!

Discussion in 'Site & Server Administration' started by hostrs.com, Jan 29, 2010.

  1. #1
    to raise /tmp directory size?
    I have a script that streams files from other remote servers straight to the user and it always uses the tmp directory for file streams. How can I fix it from clogging up my /tmp directory? Can I set it to a different /tmp directory? Thanks! :):):)
     
    hostrs.com, Jan 29, 2010 IP
  2. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't increase the size of the /tmp without reloading the OS. You can create the tmp directory in a different partition and set the variable TMPDIR to that path using the following command:

    export TMPDIR=/pathtonewtmp
    Code (markup):
     
    mellow-h, Jan 29, 2010 IP