- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Help needed in scripts execution
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
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
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
02-22-2010 11:41 PM
02-22-2010 11:41 PM
I am trying to install oracle database on HP Tru 64 bit. For pre requisites I created Oracle user and edit the .login file with "umask 022" mention in the installation guide.
Now I am struck on a point that:
10. To run the shell startup script, enter one of the following commands:
■ Bash shell:
$ . ./.bash_profile
■ Bourne or Korn shell:
$ . ./.profile
■ C shell:
% source ./.login
Any body guide me how could I able to execute these scripts ?
where these scripts are located ?
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2010 05:29 AM - last edited on 06-28-2021 09:24 PM by Ramya_Heera
02-23-2010 05:29 AM - last edited on 06-28-2021 09:24 PM by Ramya_Heera
SolutionThey're in the user's home directory. You might not see them with "ls" because files whose names start with a period are "hidden" files. If you do "ls -a", you'll see them.
To run them, simply run the command exactly as shown, excluding the first $ or % character, which is indicating a command prompt. For example, if running the Korn shell, enter:
. ./.profile
Note the space between the first two periods. The first period says to run the following script, while "./.profile" indicates the location of the script. This assumes that your current directory is set to the user's home directory.
If you're not even sure which shell you're using, enter "echo $SHELL" to find out.
Martin
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2010 12:38 AM
02-24-2010 12:38 AM
Re: Help needed in scripts execution
prior to execute the profile or login file accorning to your shell, take care that the file should be executable by the user.
In ksh type chmod u+x .profile
Rgds,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2010 04:53 AM
02-24-2010 04:53 AM
Re: Help needed in scripts execution
> accorning to your shell, take care that the
> file should be executable by the user.
This would be important if you were
_executing_ ",profile" or ".login" as shell
scripts, but that's not what's happening.
". ./.profile" or "source ./.login" tells the
shell to _read_ commands from that file,
_not_ to execute it as a shell script (in a
separate process). Thus, read permission is
needed, but execute permission is not.
But what do I know? Try it, and see what's
true.