[go: up one dir, main page]

File: parrot_run.m4

package info (click to toggle)
cctools 7.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,744 kB
  • sloc: ansic: 187,336; cpp: 20,196; python: 18,633; sh: 11,159; xml: 3,688; perl: 2,817; makefile: 1,105
file content (128 lines) | stat: -rw-r--r-- 6,967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
include(manual.h)dnl
HEADER(parrot_run)

SECTION(NAME)
BOLD(parrot_run) - run a program in the Parrot virtual file system

SECTION(SYNOPSIS)
CODE(BOLD(parrot_run [parrot_options] program [program_options]))

SECTION(DESCRIPTION)
CODE(parrot_run) runs an application or a shell inside the Parrot virtual filesystem.  Parrot redirects the application's system calls to remote storage systems.  Parrot currently supports the following remote storage systems: HTTP, GROW, FTP, GridFTP, iRODS, HDFS, XRootd, Chirp.  This list may vary depending on how Parrot was built.  Run CODE(parrot -h) to see exactly what support is available on your system.
PARA
Parrot works by trapping the application's system calls through the CODE(ptrace) debugging interface.  It does not require any special privileges to install or run, so it is useful to ordinary users that wish to access data across wide area networks.  The CODE(ptrace) debugging interface does have some cost, so applications may run slower, depending on how many I/O operations they perform.
PARA
For complete details with examples, see the LINK(Parrot User's Manual,http://ccl.cse.nd.edu/software/manuals/parrot.html)

SECTION(OPTIONS)
OPTIONS_BEGIN
OPTION_PAIR(--check-driver,driver) Check for the presence of a given driver (e.g. http, ftp, etc) and return success if it is currently enabled.
OPTION_TRIPLET(-a,chirp-auth,unix|hostname|ticket|globus|kerberos)Use this Chirp authentication method.  May be invoked multiple times to indicate a preferred list, in order.
OPTION_TRIPLET(-b, block-size, bytes)Set the I/O block size hint.
OPTION_TRIPLET(-c, status-file, file)Print exit status information to file.
OPTION_ITEM(-C, channel-auth)Enable data channel authentication in GridFTP.
OPTION_TRIPLET(-d, debug, flag)Enable debugging for this sub-system.
OPTION_ITEM(-D, --no-optimize)Disable small file optimizations.
OPTION_ITEM(--dynamic-mounts) Enable the use of parot_mount in this session.
OPTION_ITEM(-F, --with-snapshots)Enable file snapshot caching for all protocols.
OPTION_ITEM(-f, --no-follow-symlinks)Disable following symlinks.
OPTION_TRIPLET(-G,gid,num)Fake this gid; Real gid stays the same.
OPTION_ITEM(-h, --help)Show this screen.
OPTION_ITEM(--helper)Enable use of helper library.
OPTION_TRIPLET(-i, tickets, files)Comma-delimited list of tickets to use for authentication.
OPTION_TRIPLET(-I, debug-level-irods, num)Set the iRODS driver internal debug level.
OPTION_ITEM(-K, --with-checksums)Checksum files where available.
OPTION_ITEM(-k, --no-checksums)Do not checksum files.
OPTION_TRIPLET(-l, ld-path, path)Path to ld.so to use.
OPTION_TRIPLET(-m, ftab-file, file)Use this file as a mountlist.
OPTION_TRIPLET(-M, mount, /foo=/bar)Mount (redirect) /foo to /bar.
OPTION_TRIPLET(-e, env-list, path)Record the environment variables.
OPTION_TRIPLET(-n, name-list, path)Record all the file names.
OPTION_ITEM(--no-set-foreground)Disable changing the foreground process group of the session.
OPTION_TRIPLET(-N, hostname, name)Pretend that this is my hostname.
OPTION_TRIPLET(-o,debug-file,file)Write debugging output to this file. By default, debugging is sent to stderr (":stderr"). You may specify logs be sent to stdout (":stdout"), to the system syslog (":syslog"), or to the systemd journal (":journal").
OPTION_TRIPLET(-O, debug-rotate-max, bytes)Rotate debug files of this size.
OPTION_TRIPLET(-p, proxy, host:port)Use this proxy server for HTTP requests.
OPTION_ITEM(-Q, --no-chirp-catalog)Inhibit catalog queries to list /chirp.
OPTION_TRIPLET(-r, cvmfs-repos, repos)CVMFS repositories to enable (PARROT_CVMFS_REPO).
OPTION_ITEM(--cvmfs-repo-switching) Allow repository switching with CVMFS.
OPTION_TRIPLET(-R, root-checksum, cksum)Enforce this root filesystem checksum, where available.
OPTION_ITEM(-s, --stream-no-cache)Use streaming protocols without caching.
OPTION_ITEM(-S, --session-caching)Enable whole session caching for all protocols.
OPTION_ITEM(--syscall-disable-debug)Disable tracee access to the Parrot debug syscall.
OPTION_TRIPLET(-t, tempdir, dir)Where to store temporary files.
OPTION_TRIPLET(-T, timeout, time)Maximum amount of time to retry failures.
time)Maximum amount of time to retry failures.
OPTION_ITEM(--time-stop) Stop virtual time at midnight, Jan 1st, 2001 UTC.
OPTION_ITEM(--time-warp) Warp virtual time starting from midnight, Jan 1st, 2001 UTC.
OPTION_TRIPLET(-U, uid, num)Fake this unix uid; Real uid stays the same.
OPTION_TRIPLET(-u, username, name)Use this extended username.
OPTION_ITEM(--fake-setuid)Track changes from setuid and setgid.
OPTION_ITEM(--valgrind)Enable valgrind support for Parrot.
OPTION_ITEM(-v, --version)Display version number.
OPTION_ITEM(--is-running)Test is Parrot is already running.
OPTION_TRIPLET(-w, work-dir, dir)Initial working directory.
OPTION_ITEM(-W, --syscall-table)Display table of system calls trapped.
OPTION_ITEM(-Y, --sync-write)Force synchronous disk writes.
OPTION_ITEM(-Z, --auto-decompress)Enable automatic decompression on .gz files.
OPTION_PAIR(--disable-service,service) Disable a compiled-in service (e.g. http, cvmfs, etc.)
OPTIONS_END

SECTION(ENVIRONMENT VARIABLES)
CODE(parrot_run) sets the environment variable CODE(PARROT_ENABLED) to the value CODE(1)
for its child processes.  This makes it possible to set a visible flag in your shell prompt
when CODE(parrot_run) is enabled.

SECTION(EXIT STATUS)
CODE(parrot_run) returns the exit status of the process that it runs.
If CODE(parrot_run) is unable to start the process, it will return non-zero.

SECTION(EXAMPLES)
To access a single remote file using CODE(vi):
LONGCODE_BEGIN
% parrot_run vi /anonftp/ftp.gnu.org/pub/README
LONGCODE_END

You can also run an entire shell inside of Parrot, like this:
LONGCODE_BEGIN
% parrot_run bash
% cd /anonftp/ftp.gnu.org/pub
% ls -la
% cat README
% exit
LONGCODE_END

To see the list of available Chirp servers around the world:
LONGCODE_BEGIN
% parrot_run ls -la /chirp
LONGCODE_END

Parrot can record the names of all the accessed files and the environment variables during the execution process of one program, like this:
LONGCODE_BEGIN
% parrot_run --name-list list.txt --env-list envlist ls ~
LONGCODE_END
The environment variables at the starting moment of your program will be recorded into BOLD(envlist). The absolute paths of all the accessed files, together with the system call types, will be recorded into BOLD(list.txt). For example, the file BOLD(/usr/bin/ls) is accessed using the BOLD(stat) system call, like this:
LONGCODE_BEGIN
% /usr/bin/ls|stat
LONGCODE_END

SECTION(NOTES ON DOCKER)

Docker by default blocks ptrace, the system call on which parrot relies. To
run parrot inside docker, the container needs to be started using the
CODE(--security-opt seccomp=unconfined) command line argument. For
example:

LONGCODE_BEGIN
    docker run --security-opt seccomp=unconfined MY-DOCKER-IMAGE
LONGCODE_END

SECTION(COPYRIGHT)

COPYRIGHT_BOILERPLATE

SECTION(SEE ALSO)

SEE_ALSO_PARROT

FOOTER