Register
It is currently Tue Sep 30, 2014 3:47 am

Self-updating script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Thu Dec 12, 2013 3:06 pm   
User avatar

Joined: Sun Nov 01, 2009 8:59 am
Posts: 23
Location: Try to guess!
Hello, i need some input from you experts: is it 'dangerous' to modify a script while it's running?
I need a self-updating script but i am not sure which is the best way to implement it.
More specifically my script would execute 'git pull' but the problem is that it is part of the repository too so it would be overwritten.
Can it be done this way? I've read a lot of contradictory information around and i'm very confused.
If it can't be done the dumb way what would you suggest instead?


Top
 Profile  
 PostPosted: Fri Dec 13, 2013 5:38 am   
Moderator
User avatar

Joined: Thu Oct 11, 2007 7:12 am
Posts: 229
Location: London - UK
Once bash starts the script it keeps a copy somewhere (memory presumably) while it's running.
The git pull should not matter.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP