Thanks; I'll try anything because I'm really shootin' in the dark :)

steve


On May 26, 2006, at 1:21 PM, Sheila Fenelon wrote:

steve miller wrote:
I am trying to execute a shell script containing a simple tar command using a cron job, and I ain't no good at this! I created a file called exec_tar.sh and placed it at the web root of my website. The file contained:
tar -cvf cah_web`date +"%m%d%y"`.tar -C /home/myweb/www

Is that the whole file? You need something like this

#!/bin/sh
TODAY=`date +"%m%d%y"`
tar -cvf cah_web${TODAY}.tar -C /home/myweb/www


You might need to specify the complete path to tar in order for cron to find it.


I am attempting to tar the whole "www" directory, then I'll ftp it to another site for storage.
I set up a cron to run:
home/myweb/www/exec_tar.sh

Make sure exec_tar.sh has execute permission and test it by running it from the command line.

Give cron the complete path to exec_tar.sh

This isn't working...am I even close?

Close. :)

lost,
steve

Sheila
http://www.shefen.com/


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to