Search Results

Search: Posts Made By: krworks
2,363
Posted By krworks
Setting cronjobs...
Hi,

We have 4 jobs to be run every month on different times -
* a daily job runs once in 2 days at 3PM
*a weekly runs every thursday at 3PM
* a monthly runs last day of month either 30 or 31st...
4,101
Posted By krworks
Thanks agn... That works... And 1 more...
Thanks agn...

That works...
And 1 more thing is how to keep the original files as it is using gzip? so that I can only move the .gz files to another folder?
4,101
Posted By krworks
Script for zipping
Hi,

I've edited the code.


#!/bin/ksh

cd /home/rt/Test_Zip

z=`ls *.log`

for i in $z
do
gzip $i > "$i"_`date +%m%d%y`.gz
done



Now there is no error,
Now the new problem...
4,101
Posted By krworks
Error in the script
Hi,

I have a test script which zips the log files in a folder.

#!/bin/ksh

cd /home/rt/Test_Zip

z=`ls *.log`

for i in $z
gzip $i > "$i"_`date +%m%d%y`.gz
done
The folder has 4 log...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy