---
name: "pvm_unexport"
section: "3"
platform: "linux"
package: "pvm-dev"
version: "3.4.2-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/pvm_export"
---

# pvm\_unexport(3)

Mark environment variables to export through spawn

Part of [pvm\_export(3)](/pvm_export/3.md).

## NAME

pvm\_export, pvm\_unexport - Mark environment variables to export through spawn

## SYNOPSIS

```
C	int cc = pvm_export( char *name )
	int cc = pvm_unexport( char *name )
Fortran	Not available
```

## PARAMETERS

- name

  **Name of an environment variable to add to or delete from export list.**

## DESCRIPTION

**The routines** *pvm\_export* **and** *pvm\_unexport* **are provided for convenience in editing environment variable** *PVM\_EXPORT,* **while maintaining the colon-separated list syntax** **it requires.** **The variable can be modified by other means,** **and at the same time by the pvm\_export functions.**

**pvm\_export checks to see if a name is already in PVM\_EXPORT before** **including it,** **and exporting a name more than once is not considered an error.** **Likewise,** **pvm\_unexport will not complain if you specify a name not in PVM\_EXPORT.**

## EXAMPLES

```
C:
	/* PVM_EXPORT=SHELL:HOME */
	pvm_export("DISPLAY");
	pvm_export("TERM");
	pvm_unexport("HOME");
	/* PVM_EXPORT=SHELL:DISPLAY:TERM */
```

## ERRORS

**No error conditions are currently returned by pvm\_export and pvm\_unexport.**

## SEE ALSO

**pvm(1PVM)** **pvm\_spawn(3PVM)**
