Results 1 to 4 of 4

Thread: Launch a process specifying its root

  1. #1
    Join Date
    Sep 2012
    Beans
    2

    Launch a process specifying its root

    Hi all. I'm new to this forum (so if it's the wrong place to make this question, forgive me).
    What I'm going to ask you is if it's possible to launch a process from the terminal (in my case, I want to launch the erlang shell) specifying a folder and letting this process believe that there isn't anything over it. Like this folder is the root.
    Any suggestion?
    Thank you

  2. #2
    Join Date
    Aug 2006
    Location
    Airstrip One
    Beans
    330

    Re: Launch a process specifying its root

    Hi welcome to these forums. There's a command called chroot (change root) which I believe does what you want. You can find more info on it by doing a man chroot. I've never needed to use it before myself, but I think it lets you execute a command and specify any folder to act as the root folder.
    Last edited by Nytram; September 1st, 2012 at 01:25 PM.

  3. #3
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,509
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Launch a process specifying its root

    Quote Originally Posted by firedragon1 View Post
    Hi all. I'm new to this forum (so if it's the wrong place to make this question, forgive me).
    What I'm going to ask you is if it's possible to launch a process from the terminal (in my case, I want to launch the erlang shell) specifying a folder and letting this process believe that there isn't anything over it. Like this folder is the root.
    Any suggestion?
    Thank you
    Ignore that first response, it does not understand what you want.

    Simply make a script that has a "cd" command to the absolute folder path you want to run the script in, and then the command to run the process.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  4. #4
    Join Date
    Sep 2012
    Beans
    2

    Re: Launch a process specifying its root

    Thank you guys I'll try these solutions!

Tags for this Thread

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
  •