- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to Adding scripts in startup
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
01-23-2007 03:11 PM
01-23-2007 03:11 PM
how to Adding scripts in startup
i want to know the method of adding a script to startup and it will run itself only when i login as a root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 06:17 PM
01-23-2007 06:17 PM
Re: how to Adding scripts in startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 06:23 PM
01-23-2007 06:23 PM
Re: how to Adding scripts in startup
executes .bashrc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 08:09 PM
01-23-2007 08:09 PM
Re: how to Adding scripts in startup
watch out: ~/.bash_profile and ~/.bashrc will be used in different ways. The ~/.bash_profile will be read by a login shell, the ~/.bashrc only by an interactive shell. When you login, the ~/.bash_profile will be read. When you start a new shell with "sh" oder "bash", the ~/.bashrc will be read. Some distributions read both files in any way (openSUSE for example).
Regards,
Patrick
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 08:20 PM
01-23-2007 08:20 PM
Re: how to Adding scripts in startup
when i adding script to .bash_profile file it will reflect only a tty terminal. i want to run the script GUI mode when i log in as root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 08:54 PM
01-23-2007 08:54 PM
Re: how to Adding scripts in startup
you mean a login over xdm or kdm? If you're running KDE, you can try to put you script in ~/.kde/Autostart.
Regards,
Patrick
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 09:40 PM
01-23-2007 09:40 PM
Re: how to Adding scripts in startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2007 10:19 AM
01-24-2007 10:19 AM
Re: how to Adding scripts in startup
script and make it start with a "#!/bin/bash" line so that it can be run like an executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2007 05:12 PM
01-25-2007 05:12 PM
Re: how to Adding scripts in startup
Now my script working in startup perfectly