Solved

How to suppress setenv output on Unix?

Posted on 2013-10-29
1
449 Views
Last Modified: 2013-10-29
Hi,
How can I suppress setenv output on Unix?
0
Comment
Question by:Tolgar
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39610393
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now