vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Clear memory cache on Linux (https://vborg.vbsupport.ru/showthread.php?t=310031)

madness85 03-29-2014 10:47 PM

Clear memory cache on Linux
 
I added this to my server http://hosting.com/support/linux/cle...-linux-server/

I've removed everything above but getting emails every hour :( please help

--------------- Added [DATE]1396133446[/DATE] at [TIME]1396133446[/TIME] ---------------

Email

/bin/sh: /root/clearcache.sh: /bin/sh^M: bad interpreter: No such file or directory

I just want to remove it

kh99 03-29-2014 11:25 PM

I think the ^M is a carriage return character, which windows uses at the end of lines in a text file but linux doesn't, so it's confused. To be honest I haven't used linux in a while, but I seem to remember a command called dos2unix which would fix that (assuming you don't know how to use vi or another linux editor). Try the command:
Code:

dos2unix /root/clearcache.sh

If you still want to remove the fix, try crontab -e and remove the line you added.

Edit: Oh, I see you said you removed everything that that page says to add? If that's the case then I don't know. Maybe emails are queued up somewhere or something like that, because it doesn't seem possible to get that message if you removed /root/clearcache.sh

snakes1100 03-30-2014 05:56 AM

chk crontab
crontab -e

Zachery 03-30-2014 07:04 AM

You should really let your OS manage its memory. It knows how to operate more efficiently than you do.


All times are GMT. The time now is 05:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00931 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete