The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
My first script of day, it looks easy, but... trutoman Shell Programming and Scripting 5 12-02-2008 03:14 AM
Need help on installing an EASY to use and easy to install command line text editor EugeneG UNIX for Dummies Questions & Answers 4 07-16-2007 12:53 PM
Help with an 'easy' script lestat_ecuador UNIX for Dummies Questions & Answers 3 01-14-2007 01:30 AM
Help with an 'easy' script lestat_ecuador Shell Programming and Scripting 7 01-13-2007 07:13 PM
Easy script guest100 UNIX for Dummies Questions & Answers 8 03-07-2005 10:57 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-23-2009
crusher crusher is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 2
Easy Checkup Script

Hi,

I am planning the following to do. On my linux system I've got different users in the /home/ directory. These users have file limitations.

So every user below the /home/ directory should get a text file in a seperate folder /home/$user/files/ which tells him how many files he is already using.

For example:
Code:
Dear User, you are currently using X files in the Linux System. Please be aware that the permissions for you is set to 100 files.
The X for the files I know how to get:
Code:
find /home/directory -type f | wc -l
But some little problems are still unclear for me.

1. How can look like a functionality which do the file creation including the Message for every directory in the /home/ directory?

2. How can I own the files to the related user? witch chown?

3. The file should have an automated filename with numbers with different numbers per User, how can I realise this?

If you can help me this will be greatful.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0