---
name: "fsetupcmd"
section: "1"
platform: "linux"
package: "fsp"
version: "2.81.b24-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/fsetupcmd"
---

# fsetupcmd(1)

set environment variables

## NAME

fsetupcmd, fsetup - set environment variables

## SYNOPSIS

**fsetup \[-c \| -b\] host port \[directory\] \| abbreviation**

## DESCRIPTION

**fsetup** uses a resources files to set all environmant variables needed to connect to a given host via FSP. **fsetup** loads all available resource files. If server is defined in multiple files, first match is returned. Load order is *.fspsites* in the current working directory and in the user's home directory. Then a system wide default file is used. If **fsetup** is invoked with an abbreviation given, the resource files are searched for the first host to match this abbreviation. The values given for this host will be set.

If **fsetup** is invoked with a given host and port number, this host will be used and no searching in the resource file will be done.

Since programs cannot change environment variables of their parent shell in a simple way, it is recommended that the user defines a shell alias or function to make it possible. **csh** example:

```
alias fsetup 'eval `fsetupcmd !*`'
```

## FILES

For more information about the resource file confer *[fspsites(5)](/fspsites/5.md).*

## ARGUMENTS

**-b** -- output Bourne shell code

**-c** -- output C shell code

## ENVIRONMENT

The environment variables associate this program with a FSP database and are set (resp. unset) if needed. See [fsp\_env(7)](/fsp_env/7.md) for list.

## HISTORY

This is rewrite of classic fsetup Perl script which was used in gold FSP era to parse standard fspsites format used for FSP site list exchange.

## SEE ALSO

[fcatcmd(1)](/fcatcmd/1.md), [fcdcmd(1)](/fcdcmd/1.md), [fgetcmd(1)](/fgetcmd/1.md), [fgrabcmd(1)](/fgrabcmd/1.md), [flscmd(1)](/flscmd/1.md), [fmkdir(1)](/fmkdir/1.md), [fprocmd(1)](/fprocmd/1.md), [fput(1)](/fput/1.md), [frmcmd(1)](/frmcmd/1.md), [frmdircmd(1)](/frmdircmd/1.md), [fver(1)](/fver/1.md), [fducmd(1)](/fducmd/1.md), [fhostcmd(1)](/fhostcmd/1.md), [fspd(1)](/fspd/1.md), [fsp\_prof(5)](/fsp_prof/5.md), [ffindcmd(1)](/ffindcmd/1.md), [fsp\_env(7)](/fsp_env/7.md), [fbye(1)](/fbye/1.md), [fspsites(5)](/fspsites/5.md)
