General :: Create A Script When Mailqueue (mqueue) Folder Size Reaches 1GB

Aug 4, 2011

how to create a script when my mailqueue (mqueue) folder size reaches 1GB and sent email alert to my email id.

Once mqueue folder size reaches the sent alert by mail. Because everytime my mqueue folder size increasing.

View 3 Replies


ADVERTISEMENT

General :: Break Copy Process When Folder Size Reaches Its Maximum?

Mar 19, 2011

I have written a script.

#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile

[code]....

The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.

View 5 Replies View Related

General :: List Folder Size And Number Of Files And Folders In Folder?

Nov 23, 2010

In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.

View 3 Replies View Related

General :: How To Clear Out Mqueue Directory

Apr 12, 2011

My system is old. Not debian.How do I clear out the mqueue directory? I don't want to delete it....just clear it out of the email that is clogging up my var partition. This old command doesn't seem to work anymore:find /var/spool/mqueue -exec rm'{}' ;Anybody know of the command to clear my mqueue.

View 5 Replies View Related

General :: Increasing Size Of A Folder?

Jul 28, 2010

As I have a opt/sybase folder in Linxs I want to increase the size of this folder how can I increase it? For example the size we mention at the time of installation Sybase is 2gb now I want to increase by 4gb how can I increase it.

View 2 Replies View Related

General :: Get File / Folder Size With SSH On System?

Jun 22, 2010

I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?

View 2 Replies View Related

General :: Determine The Size Of Each File In A Folder?

Nov 30, 2010

i have a folder with 10 files and i would like to determine the size of each file. i was trying the command

Code:

du -sh foldername

but i receive the total size .

View 5 Replies View Related

General :: Finding Folder Size Using Command

Oct 26, 2009

I want to know is there a command to find size of a folder.

View 4 Replies View Related

General :: Show Size Of Folder Contents In Ls Or Some Other Command

Sep 29, 2010

I know these folders each have >80gb of files. Yet, they only show 4.0K in ls -lah? How can I have ls show size including the contents?

[root@aapsan01 aapxen01]# ls -lah
total 48K
drwxrwxrwx 6 root root 4.0K Sep 29 03:45 .
drwxrwxrwx 15 root root 4.0K Sep 27 09:15 ..

[Code]....

View 4 Replies View Related

Server :: Increasing Size Of /var Folder Or Mount To Another Folder?

Nov 16, 2010

I'm installing things in a new Red Hat server and saw that the /var folder is full (100%). I need this folder to have more space or another kind of solution because this server is going to be used as a print server.

View 7 Replies View Related

General :: Increase Size Of Home Folder Running OpenSuse 11.3?

Jul 5, 2011

how do I increase the size of my home folder in OpenSuse11.3

View 12 Replies View Related

General :: Create A Logical Volume Of 18TB In Size?

Dec 1, 2010

Is it possible to create a logical volume of 18TB in size? I was able to create the volume group but I'm having issues with the logical volume.

View 6 Replies View Related

General :: Incrimental Counter - Reaches Its Value Of 10 To Reset To Zero

Jun 23, 2010

i am just starting a ubuntu server and i am trying to learn i have a script that runs ever hour and i would like to put a counter (count=count+) in a line if it is true and also if the counter reaches its value of 10 to reset the counter to zero

View 3 Replies View Related

General :: Zip - How To Create A Folder

Nov 29, 2010

Build Zip archive, special cases

I'm using zip to archive different files. I need to create a directory in the zip file where to place some of them. Is that possible ?

The syntax I got so far is zip output.zip -r /var/www/test

Inside the zip I want a folder called backup1 and in there the files from /test.

View 2 Replies View Related

General :: Create FTP Shortcuts To Another Folder?

Nov 7, 2010

How can I create shortcut from one ftp folder to another using SFTP client such as WinSCP with Putty?

For example, application path is /home/primary/webapps/appication/

We have created new user with default home directory /home/secondary/

Using Bash command:

setfacl -R -m u:secondary:rwx /home/primary/webapps/appication/

we added full Read-Write permission for secondary user.

To access application folder he suppose to type full path to application folder which is not so convenient for daily usage.

As a solution I would like to create some shortcuts in home directory to this folders as I seen something similar in default cPanel configuration where PUBLIC_HTML folder has some alias such as WWW.

View 1 Replies View Related

General :: How To Create Folder Using Script

Jun 21, 2010

1. I wanna create a automation script to automatically run the software

2. I wanna create the folder with the format that the filename then date format.

View 8 Replies View Related

CentOS 5 Server :: Mailqueue Filling Up - Postfix/Courier/Spamassassin

Feb 2, 2010

In the last week email delivery had slowed down to taking approximately 24 hours and investigation has revealed that there were 45000 emails in the mailqueue. I flushed the mailqueue yesterday but mail delivery is slowing down again because emails are again being queued by the thousand.

The mails are mainly spam sent to ficticious users at a genuine domain hosted on the server.

My setup is running Courier IMAP with Postfix, Spassassin is installed along with Amavisd-new but I just don't understand why this has suddenly become a problem based on my setup not having changed for the last 6 months.

Should these spam emails be being discarded by spamassassin before reaching the mail queue? Are my discard score settings too high (6.9)?

View 3 Replies View Related

Ubuntu :: Create Folder',and Results In An Empty Folder Being Created On Desktop?

Oct 29, 2010

I have this nasty habit of refreshing desktop in a quick succession by right-clicking and selecting 'Refresh',on my XP system at office.(And,iam sure most of us do the same).With Ubuntu,if a right-click on desktop slowly and select 'align by...',it simulates the XP refresh action as explained above.But,if i perform the same action rapidly,it takes this first option from right-click context menu,which is 'Create Folder',and results in an empty folder being created on desktop.I tried double right-clicking and again it created an empty folder.Is there any workaround to handle this.I mean:Can the right-click context menu items be shuffled so that the 'Create Folder' option is moved from 1st place

View 9 Replies View Related

General :: How To Create A Folder Inside A Tarball

Jun 9, 2011

I created a tarball with multiple files. The rpm generator requires those files to be inside a folder. I don't want to move the files before generating the tar. Is there a way to create this folder while generating the tar or after it?

View 1 Replies View Related

General :: Create Folder Name From The Text File?

Jun 23, 2010

1. I need guide on how to create a folder name from the text file with .txt format.

2. First, I call the function of reading the directory.

3. Then, I dont know how to do.

4. Finally, I close the directory

This is my source code in perl

## read text.txt file ##
open F, "from/$directory/text.txt";
read F, $buf, 9999;
close F;[/size]

This source code is used to print the folder with date format like "ddmm" d stands for day and m stands for month

if ($command =~ s/-O "(.*)"/-O "$websites/$month/$file"/)

Instead, I want to have the name from text.txt to be folder name

View 4 Replies View Related

General :: Can't Create Network Folder Over Ssh With KNetAttach

Feb 11, 2010

I get the following error:

Quote:

Unable to connect to server. Please check your settings and try again.

However at the same time I get a notification pop up on the taskbar that says :

Quote:

Succesfully connected to xxxxxx
sftp://xxxxxx:22/xxxx

View 2 Replies View Related

Debian :: Create Folder From Filename And Move File Into Folder

Feb 13, 2011

this is posable but am trying to do this "Create folder from a filename and move the file into the folder" i have 500000+ file's i need to do with is there a easy way?I really don't want to download them all make/move them with filemonkey just to re-upload them

View 2 Replies View Related

General :: Can't Create The Folder Directory - Permission Denied

Jan 18, 2010

I set security context for a folder as 702 to enable other users to create and delete folder contents.But whenever other users try to create a folder,its says "Permission denied".

View 11 Replies View Related

General :: Create A Softlink To Move Some Library Folder?

Dec 2, 2010

I'm running out of disk space in root, so I decide to move /usr/lib64 directory to other partition by creating moving the whole directory to new location and create a softlink in the old location. What I'm planning to do is:

1. Copy the whole directory to new location

2. Make sure if there's no problem in the copy process

3. Create a softlink in the old location pointing to the new location.

However, when I'm comparing the old location and the new location using du command, there's some discrepancies between those two where the new location contain bigger size than the old one. How is this possible?

Is this the proper way to save disk space by creating a softlink?

View 5 Replies View Related

General :: Create A Folder Or Directory If Permissions Are Denied?

May 24, 2010

i just installed RHEL 5, when iam trying to create a directory or file it is not creating ...

View 7 Replies View Related

Ubuntu Security :: Opt Folder Doesn't Allow To Create Folder

Oct 28, 2010

I'm new to ubuntu and want to install stepmania so i downloaded the binary, i want to put the files in the /opt/ directory, the only problem is i cant create a new folder, i tried dragging a ready-made file into it but it just says "you do not have the permissions to file:///opt/" Im soo sad i wanna play my sM NOW!

View 3 Replies View Related

General :: Virtualbox - Can't Create Directories In Virtual Box Shared Folder?

Jul 28, 2011

I'm mounting a shared folder in an arch linux guest on a windows 7 host in Virtual Box. The shared folder's filesystem is ext3 and is mounted in windows 7 with Ext2Fsd. I mount the shared folder at boot with this fstab:

D_DRIVE /home/tony vboxsf rw,gid=1000,uid=1000,auto 0 0

I believe my user in the guest OS has the right uid and gid:

[tony@kiwi ~]$ id uid=1000(tony) gid=1000(tony) groups=1000(tony),1002,(vboxsf)

I can create files and remove them fine, but I can't seem to create directories.

[tony@kiwi ~]$ mkdir foo mkdir: cannot create directory `foo': Protocol error

Its weird because the directory looks like its there, sort of.

[Code]...

View 1 Replies View Related

General :: File Permission - User Can Create Files/folders In The Shared Folder

May 4, 2011

Is possible to make a folder permission like below?

-User can create files/folders in the shared folder.

-But the files/folders they created, cannot be delete/change by em.
(only can be delete by root users)

-Each new files/folders created will auto owner to root only.

View 4 Replies View Related

General :: Limit On File Size - Doesn't Allow User To Create File Which Are Greater Than 100Kb

Jun 13, 2011

I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.

But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??

View 3 Replies View Related

Ubuntu :: Increasing Home Folder Size?

May 17, 2010

i got low space left on my home folder .. i installed ubuntu and set home folder's size to 20 gbs and 70 gbs for my "/" partition , 2gbs for swap.Is there a way to increse those 20 gbs ? maybe take a lil from my "/" partition?

View 2 Replies View Related







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