- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: start up script in user's profile.
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
тАО01-10-2005 01:46 AM
тАО01-10-2005 01:46 AM
start up script in user's profile.
/main/bin/c01735 main 109 245 and Sam won't allow you to add the scrip like so but I need this to take place, how should I accomplish this task?
- Tags:
- profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 02:50 AM
тАО01-10-2005 02:50 AM
Re: start up script in user's profile.
Why you don't create a script c01735.sh with the following inside:
/main/bin/c01735 main 109 245
And tell SAM to execute c01735.sh (check the file is executable)
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 02:55 AM
тАО01-10-2005 02:55 AM
Re: start up script in user's profile.
I'm not sure what are you exactly talking about, can you describe it in more details ?
generaly you can use and modify template startup script according to /sbin/init.d/template. Don't forget to make S a K links to this script from level you want to start from.
rgds Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 04:28 AM
тАО01-10-2005 04:28 AM
Re: start up script in user's profile.
followed your suggestion and wrote a simple script but now getting variable is not set properly so I set up the variable like so
CAT_HOME=/main
export CAT_HOME
guess what it comes back with.. CAT_HOME is not set in environment so decided to do setenv ENV $CAT_HOME/main and get CAT_HOME is not set... any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 04:37 AM
тАО01-10-2005 04:37 AM
Re: start up script in user's profile.
If you put a script inside the user's .profile it must be sourced with the "." command.
Let's assume you have a small script, myvars.sh:
XX=123456
export XX
For example, in the profile suppose you do this:
myvars.sh
In this case, the .profile will execute myvars.sh perfectly BUT because this is executed as a child process the exports will have absolutely no effect upon the parent shell. You need to source the script so that the myvars.sh script becomes a part of .profile.
. myvars.sh
This will work as intended BUT myvars.sh must contain no exit or return statements because you will now exit the foreground process (the shell).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 06:38 AM
тАО01-10-2005 06:38 AM
Re: start up script in user's profile.
main/bin/c01735: error: CAT_HOME not set in environment.
REFERENCE CODE: c05279-1000
any more suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 11:54 AM
тАО01-10-2005 11:54 AM