The UNIX and Linux Forums  

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
Not working Mandab Shell Programming and Scripting 7 05-11-2007 10:23 PM
FTP is not working. ronald_brayan Security 10 04-04-2007 09:23 AM
^P Not working on AIX. akbar AIX 0 02-24-2007 07:52 PM
sed not working baanprog UNIX for Advanced & Expert Users 5 09-18-2006 09:11 AM
why is this not working? matt2kjones UNIX for Dummies Questions & Answers 2 07-09-2002 04:58 PM

Closed Thread
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
  #1 (permalink)  
Old 09-30-2007
Rafael.Buria Rafael.Buria is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 16
set Working day in ksh

Hello guys it´s a pleasure to type with the unix community...I´m new in shell script and I need to insert into a #!/ksh a statment that will check if a file that I´ll receive from another script is arriving in the first working day of each month:

let´s say that I´ll reveive the following files per month:
ftp_ksh.txt
user_code.txt
indx.txt
I need to know each of those files arrived in the firt working day of the current month september was monday the 3rd. October will be monday the 1th.
Can you help me?
  #2 (permalink)  
Old 10-09-2007
timontt timontt is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 44
You can use -f option to check for whether file is exist, then put the scrip under crontjob to run on monday of each months

eg.

if [ -f ftp_ksh.txt ]; then
#send email to yourself
fi
Closed Thread

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 05:55 AM.


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