parrot_package_create(1)
NAME
parrot_package_create - generate a package based on the accessed files and the preserved environment variables
SYNOPSIS
parrot_package_create [options]
DESCRIPTION
After recording the accessed files and environment variables of one program with the help of the --name-list parameter and the --env-list of parrot_run, parrot_package_create can generate a package containing all the accessed files. You can also add the dependencies recorded in a new namelist file into an existing package.
OPTIONS
- -a,--add=<path>
The path of an existing package. - -e,--env-list=<path>
The path of the environment variables. - --new-env=<path>
The relative path of the environment variable file under the package. - -n,--name-list=<path>
The path of the namelist list. - -p,--package-path=<path>
The path of the package. - -d,--debug=<flag>
Enable debugging for this sub-system. - -o,--debug-file=<file>
Write debugging output to this file. By default, debugging is sent to stderr (":stderr"). You may specify logs to be sent to stdout (":stdout") instead. - -h,--help
Show the help info.
EXIT STATUS
On success, returns zero. On failure, returns non-zero.
EXAMPLES
To generate the package corresponding to namelist and envlist:
% parrot_package_create --name-list namelist --env-list envlist --package-path /tmp/package
Here is a short instruction about how to make use of parrot_run, parrot_package_create and parrot_package_run to generate one package for your experiment and repeat your experiment within your package.
Step 1: Run your program under parrot_run and using --name-list and --env-list parameters to record the filename list and environment variables.
% parrot_run --name-list namelist --env-list envlist /bin/bash
% exit
Step 2: Using parrot_package_create to generate a package.
% parrot_package_create --name-list namelist --env-path envlist --package-path /tmp/package
Step 3: Repeat your program within your package.
% parrot_package_run --package-path /tmp/package --shell-type bash ...
% exit
You can also add the dependencies recorded in a new namelist file, namelist1, into an existing package:
% parrot_package_create --name-list namelist1 --env-list envlist1 --new-env envlist1 --add /tmp/package
COPYRIGHT
The Cooperative Computing Tools are Copyright (C) 2022 The University of Notre Dame. This software is distributed under the GNU General Public License. See the file COPYING for details.
SEE ALSO
- Cooperative Computing Tools Documentation
- Parrot User Manual
- parrot_run(1) parrot_cp(1) parrot_getacl(1) parrot_setacl(1) parrot_mkalloc(1) parrot_lsalloc(1) parrot_locate(1) parrot_timeout(1) parrot_whoami(1) parrot_mount(1) parrot_md5(1) parrot_package_create(1) parrot_package_run(1) chroot_package_run(1)
CCTools