- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how to run script
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
how to run script
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 05:27 AM
01-15-2009 05:27 AM
how to run script
how to run script
3. I am non root user so no root priviledge with my account. I want to run a script at system startup. So, is it possible to run the script ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 05:31 AM
01-15-2009 05:31 AM
Re: how to run script
Re: how to run script
3) You can ask root for this. You can also add an entry in your profile to execute a script when you log on.
where is 2) ?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 06:15 AM
01-15-2009 06:15 AM
Re: how to run script
Re: how to run script
2. If i logging the system many times it will start many instances of that script. This is the reason for not using profile to run script.
If there any way please describe step by step.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 06:17 AM
01-15-2009 06:17 AM
Re: how to run script
Re: how to run script
3. If you do not have root privilege, you can not modify the startup scripts. Otherwise unix would be the best platform to attack for script kiddies. Ask your sysadmin to put up a script to startup an application at the system boot time, if it is legitimate. Otherwise if you are trying to slip one without anyone noticing, giving you some sort of advantage, shame on you :)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 06:26 AM
01-15-2009 06:26 AM
Re: how to run script
Re: how to run script
in your .profile, you insert a block like this
...
MYSCRIPT=
ps -ef | grep -q "$MYSCRIPT"; r=${?}
if [ ${r} -ne 0 ]
then
nohup
else
echo "${MYSCRIPT} is already running"
fi
....
this will launch your script if it is not running somewhere in the memory, and if it is running, it will not start a second instance but just give you the message it is already running.
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 06:33 AM
01-15-2009 06:33 AM
Re: how to run script
Re: how to run script
If you are not a root user, what are you doing working on network routes?
> netstat -nr
/usr/bin/netstat has -r-xr-sr-x permissions. Why can you not run it as a regualr user?
If someone changed the permissions, you can ask to change them back or you can ask your root to install sudo and allow you to run the command when you need it.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 06:57 AM
01-15-2009 06:57 AM
Re: how to run script
Re: how to run script
For monitoring netstat -nr is working i know....
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2009 08:40 AM
01-15-2009 08:40 AM
Re: how to run script
Re: how to run script
http://h20392.www2.hp.com/portal/swdepot/searchProducts.do
In the meantime you should also look in
http://forums11.itrc.hp.com/service/forums/helptips.do?#faq
http://forums11.itrc.hp.com/service/forums/helptips.do?#34
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP