- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- export problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:29 AM
10-17-2003 12:29 AM
export problem
I have a problem. I want to do a [script] that launched set the DISPLAY = vt100, but, if I effect the command [set] after have launched the [script] I see that the variable $DISPLAY doesn't have the value vt100.does a way exist for do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:31 AM
10-17-2003 12:31 AM
Re: export problem
DISPLAY=
export DISPLAY
TERM=vt100
export TERM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:40 AM
10-17-2003 12:40 AM
Re: export problem
I have done as but when the [script] finishes the value don't result assigned.
example
vi jimmy
TERM=vt100
export TERM
:wq
chmod 777 jimmy
./jimmy
ora digito SET
PS2='> '
PS3='#? '
PS4='+ '
PWD=/tmp
RANDOM=18592
SECONDS=18464
SHELL=/sbin/sh
TERM=vt220
TMOUT=0
TZ=MET-1METDST
help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:43 AM
10-17-2003 12:43 AM
Re: export problem
This works for me:
# echo $TERM
xterm
export TERM=vt100
# echo $TERM
vt100
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:44 AM
10-17-2003 12:44 AM
Re: export problem
Maybe you mean TERM=vt100 ??
Anyway, you can export an environment variable in more than one way.
eg
--
"TERM=vt100 command"
--
will run command, set the TERM variable and then call command. When command has finished, TERM will be unset.
--
export TERM=vt100
command
--
does the same, but TERM remains set subsequently.
--
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:44 AM
10-17-2003 12:44 AM
Re: export problem
. ./jimmy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:45 AM
10-17-2003 12:45 AM
Re: export problem
Hope tis helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:45 AM
10-17-2003 12:45 AM
Re: export problem
In your example, you need " . ./jimmy"
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:48 AM
10-17-2003 12:48 AM
Re: export problem
the problem is in the script
###vi jimmy
TERM=vt100
export TERM
:wq
###chmod 777 jimmy
###./jimmy
###set
EDITOR=vi
ERASE=^H
ERRNO=0
FCEDIT=/usr/bin/ed
HISTFILE=/.sh_history
HOME=/
IFS='
'
LINENO=1
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/n
OLDPWD=/
OPTARG
OPTIND=1
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nett
PPID=23245
PS1='xxx:$PWD\#'
PS2='> '
PS3='#? '
PS4='+ '
PWD=/tmp
RANDOM=18592
SECONDS=18464
SHELL=/sbin/sh
TERM=vt220
TMOUT=0
TZ=MET-1METDST
_=s
thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:50 AM
10-17-2003 12:50 AM
Re: export problem
dot space dot slash jimmy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 12:51 AM
10-17-2003 12:51 AM
Re: export problem
please note several posts above!
You need to run it ". jimmy". Notice the period/full stop at the start