Raised This Month: $51 Target: $400
 12% 

HLDS with CentOS 6.3 32bit


Post New Thread Reply   
 
Thread Tools Display Modes
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 07-19-2013 , 11:47   Re: HLDS with CentOS 6.3 32bit
Reply With Quote #21

Make compileandrun.sh (or w/e name you want) to scripting dir and put this to inside of it:
Code:
find . -name "*.sma" -mmin -15 -exec ./amxxpc {} \;
find . -name "*.amxx" -mmin -1 -exec cp {} ../plugins/ \;
This will compile every files modified in last 15min and copy compiled files to plugins dir.
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.

Last edited by jonnzus; 07-19-2013 at 12:06.
jonnzus is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 07-19-2013 , 14:13   Re: HLDS with CentOS 6.3 32bit
Reply With Quote #22

Quote:
Originally Posted by YamiKaitou View Post
It is possible if you modify compile.sh to suit your needs. It does not behave like the Windows counterpart compile.exe by default
aw..too bad

Quote:
Originally Posted by jonnzus View Post
Make compileandrun.sh (or w/e name you want) to scripting dir and put this to inside of it:
Code:
find . -name "*.sma" -mmin -15 -exec ./amxxpc {} \;
find . -name "*.amxx" -mmin -1 -exec cp {} ../plugins/ \;
This will compile every files modified in last 15min and copy compiled files to plugins dir.
This will do the trick. Thanks!

EDIT: I think you should add delay before finding .amxx and copying them to ../plugins folder

Last edited by kNowo; 07-19-2013 at 14:15.
kNowo is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 07-20-2013 , 12:08   Re: HLDS with CentOS 6.3 32bit
Reply With Quote #23

@jonncuz
Can you examine this piece of code? Is it correct and safe? I don't want it to suddenly delete all my files

Code:
find . -name '*.sma' -mmin -5 -exec ./amxxpc {} \;
sleep 20
find . -name '*.amxx' -mmin -1 -exec cp {} ../plugins \;
sleep 20
find . -name '*.amxx' -mmin -1 -exec rm {} \;
kNowo is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 07-20-2013 , 12:17   Re: HLDS with CentOS 6.3 32bit
Reply With Quote #24

It should work, but you can probably also change
Code:
find . -name '*.amxx' -mmin -1 -exec cp {} ../plugins \;
to
Code:
find . -name '*.amxx' -mmin -1 -exec mv {} ../plugins \;
and then you don't need to delete those.
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode