parrot_namespace(1) | Cooperative Computing Tools | parrot_namespace(1) |
parrot_namespace - run a command in a modified namespace.
parrot_cp [options] <command>
parrot_namespace detects whether it is already running under Parrot and either forks a new mount namespace in the existing Parrot session or simply executes parrot_run. For applications that only need to make mount-related changes, parrot_namespace is a drop-in replacement for parrot_run that automatically handles nested invocations.
On success, returns zero. On failure, returns non-zero.
To run Parrot under Parrot with a modified mount environment, use parrot_namespace
% parrot_namespace -M /tmp=/tmp/job01 sh % parrot_mount --unmount /tmp # not allowed
Now in the same shell, we can call parrot_namespace regardless of whether we're already running under Parrot or not.
% parrot_namespace -m mountfile foo
The Cooperative Computing Tools are Copyright (C) 2003-2004 Douglas Thain and Copyright (C) 2005-2015 The University of Notre Dame. This software is distributed under the GNU General Public License. See the file COPYING for details.
CCTools 7.0.9 FINAL |