- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: modifying a shell script while it is running
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
03-01-2005 02:35 AM
03-01-2005 02:35 AM
modifying a shell script while it is running
bash shell
If I modify a shell script (add/delete lines, comment out lines) while it is executing will it abort. It seems to me that I have seen scripts abort in the past.
Any input would be appreciated.
Regards
Marc Bohnert
MedPlus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 02:41 AM
03-01-2005 02:41 AM
Re: modifying a shell script while it is running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 02:42 AM
03-01-2005 02:42 AM
Re: modifying a shell script while it is running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 05:14 AM
03-01-2005 05:14 AM
Re: modifying a shell script while it is running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 05:52 AM
03-01-2005 05:52 AM
Re: modifying a shell script while it is running
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 06:33 AM
03-01-2005 06:33 AM
Re: modifying a shell script while it is running
the system memory; so any change in the script
by another process, however bad idea it may be,
will have no affect or the currently running program.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 06:55 AM
03-01-2005 06:55 AM
Re: modifying a shell script while it is running
A running script is always entirely loaded into the
memory irrespective of the script size, so any change
to the script while it's running will have no affect on the
running process. Ofcourse, if the script is too big and
can't be loaded into the memory entirely, the invoking
shell will get SIGSEGV (insufficient memory/swap
space) and abort.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 12:48 AM
04-05-2005 12:48 AM
Re: modifying a shell script while it is running
From my 22 years experience (csh, ksh, HP-UX posix shell, bash), I have found that shell scripts can do strange things even if I make a really small change and then save the script while it is running.
So if you want to be on the safe side, never save a modified script while it is running. It is safer to:
1. Copy the script and edit the copy
2. - or - save it under a different name
3. - or - wait until the script completes before saving your changes to disk
Kind regards, Christian