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
Monitoring & emailing log files davidra UNIX for Dummies Questions & Answers 11 02-14-2008 06:36 PM
Copying Files and patilmukundraj SUN Solaris 1 12-30-2007 03:04 PM
Copying files in AWK koti_rama Shell Programming and Scripting 4 08-02-2007 01:55 AM
Perl - Emailing MULTIPLE files as attachment Tonka52 Shell Programming and Scripting 3 02-11-2004 01:19 PM
Copying files alpheusm UNIX for Dummies Questions & Answers 4 10-18-2002 02:18 AM

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 12-17-2007
jhofilena jhofilena is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 3
Copying files and emailing them out

Hello everybody,

I'm trying to create a script that will cd into a directory and then copy the file with yesterday's date on it and then cd into another directory doing the same thing. Afterwards, i'm trying to zip up the two files, and email them out to people. Can anyone help?

thanks a bunch!
  #2 (permalink)  
Old 12-18-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
use the cd command to change the current working directory

check the find command and its mtime option to identify files
that were modified yesterday

use the cp command to copy files

check if gzip is available to zip the files

use sendmail to send files in an e-mail
Closed Thread

Bookmarks

Tags
find -mtime, sendmail

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 09:04 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