Create A Cron Job To Clear Your /tmp Folder Automatically?

Dec 15, 2008

how I can create a cron job that runs every 10minutes or so to clear my /tmp folder on one of my servers?

Reason I ask is, it keeps getting filled up and doesn't delete the fiels in it and stops certain scripts from running.

Also, again, I need step by step instructions, such as:

1) what, where the file is I need to place the cron job in

2) what line of code would I put in that file (what does the cron job line look like for every 10min every day)

3) do I need to restart anything, and if so, what command do I run in shell?

View 9 Replies


ADVERTISEMENT

Create Junk Folder Automatically

Jun 28, 2008

I have postfix with ISPConfig. I have enabled spamassassin and it working fine. Now I need to create Junk folder automatically when mail user is created. How can I do that?

View 0 Replies View Related

How To Clear Exim Queue Mails Through Cron

Jul 17, 2008

I have been seeing so many exim mail queue on server. I would like to clear for every one hour throuh crontab entry. So that I have used following script to run.

file path : /root/eximQueue.sh

Script:

#!bin/bash
exim -bpu |awk '{print $3}'|xargs exim -Mrm

crontab entry:

0 * * * * /bin/bash /root/eximQueue.sh

but the crontab is running every 1 hour but no mails cleared. Please guide to work this.

View 4 Replies View Related

Plesk 11.x / Linux :: Recover After (Clear Folder) In Webmail

Jul 17, 2014

Webmail using, in the "Inbox" I chose all the mail and accidentally pressed the "clear folder" letters deleted or i am can be restored? I need to return the letter....

View 3 Replies View Related

Create Junk Mail Automatically

Jul 16, 2008

I have postifix mail server running. I want to create a junk folder as and when new user is added. How can I do that?

View 2 Replies View Related

Howto: Automatically Verify Cron / Crond Is Running And Restart If Not

May 30, 2005

This one's pretty simple really, but given the fact that I'm constantly running into crond stops with CPanel servers (no clue why, or where, but it's happening), I'll post this here. If it helps someone, then great, if not, hey, no worries.

Firstly, login as root to your server through ssh, however you usually do .

Next, the script (we'll call it /bin/croncheck.sh). Use whatever editor you choose to create the file.

#!/bin/bash .......

View 14 Replies View Related

HOWTO Cron Job To Copy Files From Folder To Root

Feb 5, 2008

how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X.

My root directory is public_html/
I have another directory public_html/uploads containing both files and directories.

I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/

If it helps, here is some system info

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.6.22_hg_grsec_pax
Apache version 1.3.39 (Unix)
PERL version 5.8.8
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.17.0-STABLE 19434
Theme cPanel X v2.6.0

View 1 Replies View Related

Is It Possible To Create A Cron To Backup Mysql Data Daily

May 15, 2009

Is there any way to create a cron to backup mysql data daily ( or weekly )? I mean an "auto script" to run this command daily

mysqldump -u usernam -p password dataname > file.sql

View 11 Replies View Related

How To Create A Subfolder In My Domain And Assign An Ftp User To That Folder

Jun 30, 2009

I need to create a subfolder under my domain name, and assign an ftp user to that folder. I want the user to only have access to that folder, is it possible? can you guys orient me, because I have no idea where to start, my hosting service provider is telling me I can only have one ftp account per domain, maybe I didn't explain correctly to my hosting provider.

View 1 Replies View Related

Plesk 11.x / Linux :: Web Server Settings Create New Folder

Oct 30, 2013

* Go to "Web Server Settings" add text to "Additional directives for HTTP" and press button "Ok".
* Go to "Document root" folder of your domain and now you have a new folder "/cgi-bin/test" with file "test.cgi":

Code:
#!/usr/bin/perl
print <<HTML;
Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

[Code] ....

View 13 Replies View Related

Plesk 11.x / Linux :: Unable To Create IMAP Folder

Mar 5, 2013

I saw that Plesk 11 doesn't create IMAP folder like sent items, deleted items or draft, junk etc. Is possible to fix this problem?

View 15 Replies View Related

Create A Zend Id For Your Machine. This Is Apparently For Them To Create A Product Key For Their Software

Aug 7, 2008

Customer has requested the following:

"Create a zend id for your machine." This is apparently for them to create a product key for their software and have to bind to it?!

I have never heard of this and have been unable to locate any information on it.

This is a Centos box with php 5.2.5 installed:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

how to go about this or even what this is?

View 2 Replies View Related

Clear The File

Apr 29, 2009

How to clear all content in e.g file.txt via ssh(OS is Debian)?

I need a script to merge contents of 2 .txt files, e.g file1.txt and file2.txt to 1 file - file3.txt

View 4 Replies View Related

How To Clear .pck File

Aug 15, 2008

how we can delete the .pck files, where some .pck files are having data size in KB's some are in MB's and some are in GB where it has taken the disk space
of server into GB's

how we can delete them on the server.

View 2 Replies View Related

SERVAGE.net Stay Clear

Jul 8, 2008

I'm having the very same problems as everyone else, and after a quick google it seems I'm not alone. Servage just keep fogging me off on the support over there dreadful MySql performance.

Getting the same old rubbish as everyone else, we will move you to different server, we will fix your database etc. When will servage stop blaming there customers and step-up admit there is a problem and fix it? The support is fast but there just monkeys repating the same as the last.

I have been with them for 3+ years now, and this will be the last. Just put a request in for a full refund of this years fee's. The 1st year maybe the 2nd there service was excellent, since then its got worse and to a point now where its dam write criminal to charge people for what they offer.

Do your self a favour people stay clear of this company it has wasted alot of my time.

View 9 Replies View Related

Correct Way To Clear Swap

May 19, 2009

I've never needed or used swap, but I justed noticed i have 523k of it, which i'm guessing happened when I restored a big CPanel account.

Anyway, is their a correct way to restore it? I've got the memory space, and I've vm.swappiness set to 0.

View 5 Replies View Related

GeekRack.net - Stay Clear

Mar 14, 2008

I recently bought a small company from somebody i knew, the server they had was with GeekRack. So we moved everything over to our name and everything was fine for the first week or so, i then ordered a new server from them so i could run shoutcast from however they installed the wrong OS and refused to refund us or pay for the reload fee. So i quickly cancelled that server.

After that issue things started going downhill, nobody would answer our tickets about moving the server away from them so we could get it from our reseller account with BurstNet. As soon as we mentioned we were moving they just basically terminated all contact with us. They failed to mention two different abuse tickets to us which ended with the data centre disconnecting the server on two separate occasions, both times the server was down for more than 2 days. The server was also going down every night and when we asked them to take a look they never answered.

We finally got the server moved away from GeekRack and now the server is running fine and have had no problems. So this is just a word of warning to anybody that is considering GeekRack as there provider.

View 8 Replies View Related

/tmp Folder 777 ... Use As Sessions Folder... Secure

Aug 14, 2007

On my VPS I would like to set the /tmp folder to 777 and point to it with session.save_path.

The VPS will host a number of sites, but I will have sole control of them. ie. the account holders will not have access to cpanel.

If it makes any difference, the server is running phpSUexec.

What are the risks involved with this?

View 3 Replies View Related

How To Clear Firewall In Linux Server?

Dec 15, 2007

Hi,

can you please tell me how i can clear the firewall in my linux box?

It's CentOS but i'm not sure what type of firewall is installed on my box.

Hpe to get response soon,
toby

View 10 Replies View Related

How To Clear UNIX History Of User

Jan 4, 2007

Can someone tell me how to clear the history of a UNIX user? For example, when logged in as a certain user I can press UP to see the last commands that were used. How can I get rid of them?

View 3 Replies View Related

Hosts That Have Clear Upgrade Path

Dec 27, 2007

I'm about to launch a site that i think will see a gradual growth in userbase, so i want a host that could scale my site as the it grows. I had earlier chosen crucial web host (esp their split dedicated plan) but i think after a point even that would limit the number of users and resources used per second (and they have no upgrade after that).

I would like to hear your suggestions on hosts who have plans from VPS ( i think i'll start from VPS itself and not shared just to be safe) to semi-dedicated or dedicated.

The upgrade should be hassle free, that is my main requirement. And also if there is a sudden income of traffic from other sites the host should NOT suspend my account but should charge only for the overages.

View 9 Replies View Related

SolarVPS Billing Fiasco :: Steer Clear

Apr 26, 2007

In a rush to purchase more vps servers, since my fiance and myself were building an IRC network, we decided to purchase a vps with SolarVPS. We figured things were going to take a week to start since she purchased it. A week later and the eCheck cleared, and we figured it'd take a day or two for setup. A week after that, we were starting to wonder why we hadn't received any of the information for the VPS. Starting to ponder where our service is, my fiance phoned their 800 number support and spoke with an associate. The support associate notified us that we slipped into the old billing system and purchased the vps before they switched over, and instead of disabling the billing system for a temporary amount of time, swapped to the new one and dumped the old one.

After a little prodding via the phone, they said they would push up our renewal date since they took longer than expected. He said within 15 minutes, we should receive an email with the vps information. 2 hours later we saw sight of the email.

Within the first and only month with SolarVPS, we experienced two network outages. Each time, we sufficed to use the online support system via the website, and notified them of the outage. They reiterated what we told them, which was the fact of the vps being offline network-wise. However, the agent each time told us there was nothing he could do about it, and failed to answer questions after the fact.

Towards the end of the month, we were quite dissatisfied with the service that SolarVPS has provided to us, and as such, we decided we were not going to renew the service. As we had not contracted into a year or otherwise, we moved everything off of the server. After the next payment was overdue, we received an invoice requiring us to pay them ASAP.

We emailed them directly back, asking them to cancel the vps, as in the TOS, it described that cancellation requests could be sent via email. We received an email back from them informing us that they would not cancel the vps unless a payment for the next month was received. Informing us that there was a 10 day period we had to have canceled in beforehand, we were fine with paying the next month, but wished to cancel either way. They also informed us that we were required to use the cancellation form provided via link, as they would ignore any other form of cancellation request, regardless of the statements in the TOS.

We asked for the information to login to the billing panel to pay the last outstanding bill, so we could cancel the vps. In return, they asked for full name, address, last paypal transaction id, and all ips assigned to reset the password. This is the point where we stand.

SolarVPS has been an absolute hair-tearing experience, and would give me receding hairline if I had actually torn my hair out. I would personally steer clear from them, and maybe look into a company like BuyAVPS. Always read the TOS, and make sure its loose enough to give you some movement room in case you don't like the service. Either way, We're still waiting for SolarVPS to help us cancel our VPS.

Short Ending: Steer clear.

View 5 Replies View Related

Windows Mail Server - How To Clear Queue

Mar 27, 2009

i'm running a windows 2003 server to host a number of websites.

unfortunatly it looks like i didn't correctly protect the SMTP mail server

i checked the 'badmail' folder in the inetpub and found there were upwards of 250,000 bounced mails there... some spammers were obviously having a field day with my smtp server...

i've now changed the settings so that realys are only accepted from 127.0.0.1 and anonymous access is now disallowed.

my problem is that when i start up the SMTP server again spam is continuing to be sent out because the Queue folder is apparently full of junk waiting to go out...

i've tried entering this folder but the computer hangs, presumably because there are so many there...

i've tried deleting and renaming the folder but even with the smtp server turned off i get an 'Access Denied' error...

what can i do to flush or empty the queue folder ?

View 1 Replies View Related

Clear Messages From Queue By Subject Line - SSH

Apr 24, 2008

Due to spammer activity, I find myself with 20,000 messages in the queue and I'd really like to remove those emails from the queue as it is causing delays to good messages.

Can you give me the SSH command to remove messages by subject line please?

I have already used
exim -bpru|grep frozen|awk {'print $3'}|xargs exim -Mrm
and
exiqgrep -i -f '<>' | xargs exim -Mrm
and
exim -bpu |awk '/nobody/ {print $3} ' |xargs exim -Mrm

But there are still 11,000 messages left in the queue.
The spammer messages have the following subject lines:

IS THIS TRUE?
PAYMENT UPDATE
Online Banking Account Is Locked !
Online Banking has been locked
ARE STILL ALIVE /THIS A SAD NEWS ABOUT YOU

View 3 Replies View Related

Plesk 12.x / Linux :: Clear Free Space

Sep 13, 2014

i'm using plesk 11.5..i've deleted a huge file of 15Go and i've still a message about free space on ther server...MySQL query failed: Got error 28 from storage engineClick to expand...

View 2 Replies View Related

Plesk 11.x / Linux :: Clear SpamAssassin Database?

Sep 19, 2014

The SpamAssassin bayes database has become ineffective on one of our servers and we want to wipe it and start fresh - how to do this on Plesk 11.5.30?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved