- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- echodo 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
тАО08-27-2001 03:00 PM
тАО08-27-2001 03:00 PM
example:
1.echodo ls -l /tmp - this works
2. echodo mkdir /tmp/colin - this works
3. echodo export COLIN="TEST77" then I echo $COLIN and it's empty.
I can't figure out why. No changes to the O/S. Any ideas would be of great help.
Thank you all in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2001 03:15 PM
тАО08-27-2001 03:15 PM
Re: echodo not working.
AFAIK, there is no such command called echodo
you might be using an alias or a wrapper script.
Can you do "type echodo" or "whence echodo" or "which echodo" and see what is echodo
If it is an alias "type echodo" will return
echodo is an alias for .......
-Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2001 06:10 AM
тАО08-28-2001 06:10 AM
Re: echodo not working.
I did all 3 of your commands and they returned the same thing. /p/util/oracle/8.0.6/bin/echodo
Here are the only 2 working lines in the echodo script.
echo $*
$*
This should be echoing the command and then execute it.
Thanx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2001 06:32 AM
тАО08-28-2001 06:32 AM
Solutionoracle distribution, so is not standard hp-ux.
All it does is to echo a command and then
execute it, using:
echo $*
$*
Since it is a script, each time it is invoked
it runs in its own subshell, so your
"export COLIN=TEST77" command *does* get
executed, but within its own subshell which then immediately exits.
When you do "echo $COLIN" from the calling
shell, COLIN is therefore undefined.
Therefore echodo is of no use if you are issuing commands which affect the shell environment.
echodo always works this way, nothing has changed on your system. The only way round it is to take out the echodo before the export.
How about
export COLIN="TEST77"
echo $COLIN
in your script.
Hope this helps.
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2001 06:56 AM
тАО08-28-2001 06:56 AM
Re: echodo not working.
Graham has already explained to you as to why your variable is not getting set in your shell, I just wanted to add that if you are trying to set a variable just add it to user's .profile in $HOME/.profile
-HTH
Ramesh