- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- .profile and su - issues
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
08-30-2005 04:49 AM
08-30-2005 04:49 AM
${HOME:-.}/.profile[55]: syntax error: `newline or ;' unexpected
The su -
On line [55] of the appuser .profile we have the following:
set -A whoAmI $(who am i)
whoAmI gets associated to values later in the .profile in case you needed to know.
Would anyone have any ideas why we're getting the above message?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 04:58 AM
08-30-2005 04:58 AM
Re: .profile and su - issues
In isolation, there doesn't appear to be anything wrong with the 'set' statement. Post your complete profile. I suspect that your error lies above line-55.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 04:59 AM
08-30-2005 04:59 AM
Re: .profile and su - issues
Change the line to
set -A whoAmI $(whoami)
Or
set whoAmI $(whoami)
If problem persists attach .profile.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 05:14 AM
08-30-2005 05:14 AM
Re: .profile and su - issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 05:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 05:36 AM
08-30-2005 05:36 AM
Re: .profile and su - issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 05:37 AM
08-30-2005 05:37 AM
Re: .profile and su - issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 04:09 AM
08-31-2005 04:09 AM
Re: .profile and su - issues
I understand that for reading it is more fun to have you case line (line-58) in two lines.
If you would keep it try to insert a \ (backslack) before the new line char.
case ${whoAmI[0]} in \
cpcmep|cpcfop|cpcolp|devwm|tstwm|trnwm|root) : ;; # Nothing for us to do
Regards
Roland