[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

How to suppress setenv output on Unix?

Hi,
How can I suppress setenv output on Unix?
0
Tolgar
Asked:
Tolgar
1 Solution
 
woolmilkporcCommented:
setenv is a csh/tcsh builtin to display or set environment variables.

When issued without parameters it displays the current settings, so the simplest way to suppress this command's output is obviously not issuing it.

Anyway, as usual

setenv >/dev/null

will discard the output of setenv, just as it does with the standard output of any other command.

By the way, when setting a variable with

setenv variable value

there will be no output at all.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now