- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- export command is not working
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
Discussions
Discussions
Forums
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
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
тАО06-02-2011 04:31 AM
тАО06-02-2011 04:31 AM
On HP-UX b.11.11 (C-8000), I try to run export command i.e export TERM=vt100.
Please advice,
Yaron
Solved! Go to Solution.
- Tags:
- export
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 04:39 AM
тАО06-02-2011 04:39 AM
Re: export command is not working
if you set a TERM environment variable as you showed, it just sets it in the current shells environment - it won't actually change anything - what are you expecting to happen? Maybe change the settings for the terminal? If so you should run the "tset" command after setting the environment variable...
export TERM=vt100
tset
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 04:46 AM
тАО06-02-2011 04:46 AM
Re: export command is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 04:48 AM
тАО06-02-2011 04:48 AM
Re: export command is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 04:51 AM
тАО06-02-2011 04:51 AM
Re: export command is not working
export: Command not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 05:02 AM
тАО06-02-2011 05:02 AM
SolutionI gues you are using another shell such as csh or tcsh which doesn't have export... why you would want to use these terrible shells I don't know, but the equivalent to "export TERM=vt100" in csh would be "setenv TERM vt100"
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 10:20 AM
тАО06-03-2011 10:20 AM
Re: export command is not working
As Duncan said, try "man ksh" or "man sh-posix" and look for "export".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2011 03:43 AM
тАО06-05-2011 03:43 AM
Re: export command is not working
Usually, I uses tcsh or sh shells.
1. How can I know what shell Im running with (I mean, is there any command that displays the shell)?
2. what are the benefits of ksh over others tcsh or sh in my case?
BR,
Yaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2011 12:06 PM - last edited on тАО08-02-2011 07:15 AM by Kevin_Paul
тАО06-05-2011 12:06 PM - last edited on тАО08-02-2011 07:15 AM by Kevin_Paul
Re: export command is not working
>Usually, I use tcsh or sh shells.
export works in sh/ksh, bash, etc
>1. How can I know what shell I'm running?
Typically you would just know. :-)
You can "echo $SHELL" but that's your login shell and can be changed.
I've found that if you try to execute a bogus command, the name of the shell is mentioned.
http://h30499.www3.hp.com/t5/Languages-and-Scripting/shell/m-p/4754063#M29768
>2. what are the benefits of ksh over others tcsh or sh in my case?
There is something terribly wrong if you mention tcsh and sh together, since they don't get along. :-)
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Which-Shell-is-best/m-p/4783404#M30508
http://h30499.www3.hp.com/t5/Languages-and-Scripting/KSH-to-CSH-conversion-not-working/m-p/5274603#M41617
Basically sh/ksh are nearly identical and are real shell.
tcsh is derived from the scummy C shell.
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2011 11:49 PM
тАО06-05-2011 11:49 PM
Re: export command is not working
BTW, I probably type tcsh to get a comfortable env, so I couldn't run export.
BR,
Yaron