Re: how to view environment variables



Oliver Fromme wrote:
Chris Whitehouse wrote:
> sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment > variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they > are set to? set and printenv don't find them. I'm using standard csh and > FreeBSD 7.0-STABLE, fuse.ko is loaded and ntfs-3g works except it > seems very slow.

The "env" command prints the environment variables of your
current shell (should work with any shell).

To view the environment variables of another process, use
something like "ps -ewwp 1234" (1234 being the PID number).
This requires PROCFS to be mounted on /proc.

Best regards
Oliver

This is the last bit of the puzzle. It does indeed print environment variables set with 'env VAR=foo prog' but as I've now understood from previous replies the program doesn't set variables, it uses them if they are already set, otherwise uses defaults.

Thanks

Chris
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Problem wih characters (was Problem with IME)
    ... even *heard* of an "env" utility. ... LANG=ja_JP.UTF-8 environment, although I suspect it wouldn't have any ... When I tried running it in a shell, ... But I am going to study Tobias Diedrich's suggestion very hard. ...
    (sci.lang.japan)
  • Re: Environment variable not remembered outside a script?
    ... After executing the two files (.zshrc is already executed when I opened the ... This is a difference between running a script and sourcing it. ... and any environment variables it sets are ... themselves are not a shell feature but are actually part of the UNIX ...
    (comp.unix.shell)
  • Re: Process Understanding
    ... their environment, especially env variables. ... the that one user has a bash shell while the other has no shell ... The environment variables are read by software commands. ... Now when you execute the source command again, ...
    (Fedora)
  • Re: Export command
    ... exporting a shell variable means marking that shell variable as ... The environment on Unix is a list of strings passed from command ...
    (comp.unix.shell)
  • Re: How can I set an environment variable of the current shell?
    ... your shell just keeps its own list of variable/value pairs and puts ... the exported ones into the environment of spawned child processes. ... to do putenvwhereas shell language designers seem to have not done ... one long-running command locks one file, ...
    (comp.unix.aix)