- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to run script
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-15-2009 05:27 AM
тАО01-15-2009 05:27 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 05:31 AM
тАО01-15-2009 05:31 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:15 AM
тАО01-15-2009 06:15 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:17 AM
тАО01-15-2009 06:17 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:26 AM
тАО01-15-2009 06:26 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:33 AM
тАО01-15-2009 06:33 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:57 AM
тАО01-15-2009 06:57 AM
Re: how to run script
For monitoring netstat -nr is working i know....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 08:40 AM
тАО01-15-2009 08:40 AM
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