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
echo and then cp the missing files tushar_tus Shell Programming and Scripting 3 11-16-2008 02:37 AM
echo missing files. tushar_tus Shell Programming and Scripting 1 11-15-2008 08:13 AM
how to check missing files? gholdbhurg Shell Programming and Scripting 7 04-28-2008 01:13 AM
Script to check and report database file sizes... marconi Shell Programming and Scripting 2 04-02-2008 06:50 AM
files missing cubicle^dweller UNIX for Dummies Questions & Answers 4 09-22-2003 04:10 PM

 
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 11-19-2008
johnnyvlme johnnyvlme is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 4
Smile Shell script that checks for a file and reports if missing

Hi,

I need a shell program that will prompt the user to input a dept name to the script.
The script should then check a specific directory called ‘report’ in the home directory of each member of that dept.
If the report directory does not exist, or there are no contents in the directory, that user's name should be stored in a file called ‘logfile’ in the current directory. The first line in logfile should contain a header ‘List of users with no reports on ‘today’s date and time’ ‘
Otherwise the contents of the directory should be copied to a sub directory called ‘reporting’ in the current directory.
The script should repeat the process until all users in the dept have been checked.

Thanks,
Johnny

Last edited by johnnyvlme; 11-19-2008 at 12:56 PM..
 

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

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 06:29 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