- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: error in .profile file
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-26-2005 03:58 AM
10-26-2005 03:58 AM
However when I log into the machine I get the following error message:
.profile[55]: Syntax error: `then' is not
matched.
This never happened before. Could the patch have messed up my .profile file?
The file is attached.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 04:19 AM
10-26-2005 04:19 AM
Re: error in .profile file
attached is the profile file from /etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:22 AM
10-26-2005 06:22 AM
Re: error in .profile file
1) There is within a if then fi loop some code that prematurely terminates the loop, causing a mismatch.
2) There is an if or a fi or a then missing on one of your loops.
I'd use the diff command to compare the profile that oracle backed up before it updated and that should help find the problem.
I sure hope Oracle backed up the file or you'll need to get the original off a backup.
Its quite common for Oracle to release code that is not adequately tested for HP-UX and leave us as admins to debut it.
diff /etc/profile /etc/profile.backup
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 01:28 AM
10-27-2005 01:28 AM
Re: error in .profile file
I'm clutching at straws here!
The complaint is for line 55 which is the if,then,fi section for setting up your timezone.
What is the content of your /etc/TIMEZONE file?
The only other thing is that later on, you have a section with a line continuation character '\' - this shouldn't be a problem, but it's maybe worth putting the 'if' statement all on one line!
Like I said, clutching... ;-)
Regards,
Andy Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2005 06:10 AM
11-06-2005 06:10 AM
Re: error in .profile file
i was missing a "fi" at the end of the script.
Thanks all.