With standard shell or compatible shell (/etc/passwd has /bin/sh or /bin/ksh or /bin/bash or /bin/zsh) it uses
for a shell-internal variable. And
to promote it to environment. Environment is inherited by the commands that the shell invokes.
The standard shell and compatibles process such commands in $HOME/.profileat a login.
If the shell in /etc/passwd is /bin/csh or /bin/tcsh then the syntax is different:
for shell-internal, and
for environment. There is some confusion if you do both with the same variable. By convention you should do
I.e. lowercase of internal variables and uppercase for environment variables.
The csh and tcsh process such commands in $HOME/.loginat a login.
Usually the SHELL environment variable is set from the one in /etc/passwd:
Last edited by vbe; 04-25-2017 at 04:08 AM..
Reason: typo
Well first of all I am a real Unix newbie. I am taking a course on it in University. I kind of understand set and setenv but, I think it si something that I should really understand. So I thought that I would try a forum out and see how good you guys really are.
The question:
Execute the... (1 Reply)
I never undestood exactly what's the difference between the SET and SETENV commands.
One sets variables visible to all users and the other (SETENV) only to the specific user environment ?
Thanks in advance,
BraZil - thE heLL iS HEre :mad: !!! (2 Replies)
I thought that set and setenv was easy enough to understand until I started experimenting.
I noticed the same problem in a previous thread, so I will use it as an example.
set command gave the following output:
argv ()
cwd /homes/e/ee325328/assignment.2
home /homes/e/ee325328
path ( a... (2 Replies)
Hi All,
I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me..
Problem here is I have developed a script for which i should run export DISPLAY prior to running my script....
so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Does know where I can find what ALL of the set options do in vi? I can't find it anywhere in vi's man pages or help files. I know about :set all but a lot of the options I have no clue what they do. (3 Replies)
Hi
I'm trying to understand variable scopes in solaris10.
It is said that to display env variables we use 3 commands :
- env
- set
- export
What is the difference between them ?
thx for help.
---------- Post updated at 11:00 AM ---------- Previous update was at 10:50 AM ----------
... (2 Replies)
Discussion started by: presul
2 Replies
LEARN ABOUT DEBIAN
pvm
PVM(1PVM) PVM Version 3.4 PVM(1PVM)NAME
pvm - PVM version 3 console
SYNOPSIS
pvm [ -options ] [ hostfile ]
DESCRIPTION
Pvm is a stand alone PVM task which allows the user to interactively query and modify the virtual machine. The console can be started and
stopped multiple times on any of the hosts in the virtual machine without affecting PVM or any applications that may be running.
When started pvm determines if PVM is already running and if not automatically executes pvmd3 on this host, passing pvmd3 the command line
options and host file. Thus PVM need not be running to start the console. Once started the console prints the prompt:
pvm>
The following console commands are available:
add hostname(s) - Add hosts to virtual machine
alias - Define/list command aliases
conf - List virtual machine configuration
delete hostname(s) - Delete hosts from virtual machine
echo - Echo arguments
export - Add environment variables to spawn export list
halt - Stop pvmds
help [command] - Print helpful information about a command
id - Print console task id
jobs - List running jobs
kill task-tid - Terminate tasks
mstat host-tid - Show status of hosts
ps -a - List all PVM tasks
pstat task-tid - Show status of tasks
quit - Exit console
reset - Kill all tasks
setenv - Display/set environment variables
sig signum task - Send signal to task
spawn [opt] a.out - Spawn task
opts are: -(count) number of tasks, default is 1
-(host) spawn on host, default is any
-(ARCH) spawn on hosts of ARCH
-? enable debugging
-> redirect task output to console
-> file redirect task output to file
->>file redirect task output append to file
trace - Set/display trace event mask
unexport - Remove environment variables from spawn export list
unalias - Undefine command alias
version - Show libpvm version
pvm reads $HOME/.pvmrc before reading commands from the tty, so it can be used to customize the console environment, for example:
alias ? help
alias j jobs
setenv PVM_EXPORT DISPLAY
# print my id
echo new pvm shell
id
EXAMPLES
pvm
Starts up pvmd3 on the local host or connects to running pvmd3.
pvm hostfile
Starts up console and pvmd3, which in turn reads the host file and adds the listed computers to the virtual machine.
SEE ALSO pvm_intro(1PVM), pvmd3(1PVM)
30 August, 1993 PVM(1PVM)