Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 12-01-2002, 09:06 AM Shell script help
Junior Talker

Posts: 2
Trades: 0
I have tried searching and can't find anything that is on this topic. My provider deletes all logs after one day to conserve space. Here is what I am trying to do:

Make a shell or PHP script that will:

1) Copy a file from one directory to another. It is a log file, so a shell script would work better.

2) Rename the file to include todays date. This is essential because I need to no overwrite it the next day.

3) gzip the file to save space.

I want to save stats for atleast a week so I can go on vacation and still access the raw logs.

Chuck

Any help would be appreciated. If you can just point me to the right reference, that would even help.
cwbullet is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-01-2002, 12:32 PM
xtravel's Avatar
Super Talker

Posts: 125
Location: Maldives
Trades: 0
hi cwbullet,

you can make a script for those tasks using perl, if you can run perl scripts on your server.

if i had time i would also like to help you in creating your script, but i got my degree second year exam within 2 weeks time.

hey, you can use www.cgi101.com as a reference to creat your scripts.

chao, xtravel
__________________
See the unique beauty of Maldives, Visit
Please login or register to view this content. Registration is FREE
xtravel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Shell script help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09787 seconds with 12 queries