HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Carriage return missing
Operating System - HP-UX
1830624
Members
1960
Online
110015
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-30-2002 10:57 PM
05-30-2002 10:57 PM
Hi,
Is there a solution for the missing carriage return in the following script:
#!/usr/bin/sh
CLUSTER_STATUS=`cmviewcl -v` #output of the cluster status
print $CLUSTER_STATUS #Carriage return missing
Thanks in advance,
YC
Is there a solution for the missing carriage return in the following script:
#!/usr/bin/sh
CLUSTER_STATUS=`cmviewcl -v` #output of the cluster status
print $CLUSTER_STATUS #Carriage return missing
Thanks in advance,
YC
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:05 PM
05-30-2002 11:05 PM
Re: Carriage return missing
Hi,
seems like your command output doesn't give a carriage return to your variable value. Did you try the following:
echo "$CLUSTER_STATUS\n"
this generates a new line into which your cursor is put. Don't forget the quotes, or this will not work. Works also with print command, if you use linux, try
echo -e "$CLUSTER_STATUS"
Allways stay on the bright side of life!
Peter
seems like your command output doesn't give a carriage return to your variable value. Did you try the following:
echo "$CLUSTER_STATUS\n"
this generates a new line into which your cursor is put. Don't forget the quotes, or this will not work. Works also with print command, if you use linux, try
echo -e "$CLUSTER_STATUS"
Allways stay on the bright side of life!
Peter
I'm learning here as well as helping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:41 PM
05-30-2002 11:41 PM
Re: Carriage return missing
Hi,
Thanks for your answers, but why can't the content be piped and send through mailx as follows:
echo "\n" | mailx -s "Cluster Status" < "$CLUSTER_STATUS\n"
YC
Thanks for your answers, but why can't the content be piped and send through mailx as follows:
echo "\n" | mailx -s "Cluster Status"
YC
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP