Search Results

Search: Posts Made By: vsekvsek
4,663
Posted By vsekvsek
Crontab deleting files command question
Hello out there,
Our system has a pdf generator that creates pdf files. We dont need them pas 120 days.
So I have this command in my crontab. I currently set it to "0" for testing. But normally...
1,991
Posted By vsekvsek
your right I was reading it wrong. That seems to...
your right I was reading it wrong. That seems to be my issue. thanks guys
1,991
Posted By vsekvsek
[SOLVED] Only half my script runs
Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that....
2,240
Posted By vsekvsek
I copied and pasted from a working script so...
I copied and pasted from a working script so short answer...dont know.
2,240
Posted By vsekvsek
crontab and calling a .sh file
Hey out there. I have a .sh file I am calling from cron that I am trying to use to shut down the app at midnight. I have a file that does it and works just fine if I run it by typing "bash...
1,141
Posted By vsekvsek
Warning msg from .sh script to web user?
Hello out there,
I got a script that stops and restarts a webapp. I would like to be able to send warning reminders to the webusers as a warning like 5 minutes before it happens. Can I do this an if...
1,334
Posted By vsekvsek
comparing strings as ints
Hi, So I got his code below. $year is a string of 2010,2011 etc.
I guess I want to convert $year to an integer so I can do my if statement to see if the year string is greater than 2010? Or how...
3,425
Posted By vsekvsek
recursively going through folders and subdirectorys and running delete from crontab
Hio, So I have a crontab delete of older files setup. This script works fine if I run them by each individual directory.
Problem is there are so many thousands of files and hundreds of directories...
1,552
Posted By vsekvsek
Its running on solaris server. I have an install...
Its running on solaris server. I have an install script that does the following:
# crontab
crontab $CURRENT_WORKERS/bin/crontabTemplateBRANCH

Theres nothing showing up as errors on terminal...
1,552
Posted By vsekvsek
How do crontab files get updated with changes?
I have an ant script that puts my crontabtemplate changes out on a solaris server. But I am scratching my head trying to figure out what to do next on getting the actual crontab file updated with...
8,338
Posted By vsekvsek
so if file a has a modified time of today and...
so if file a has a modified time of today and file b has a modified time of march 1st 2011 shouldnt file b show up?(because its not)

---------- Post updated at 02:31 PM ---------- Previous update...
8,338
Posted By vsekvsek
Find using mtime
Hi, so I was using mtime and its not behaving the way I would think its supposed too. I have two pdf files. One modified today and another 6 months ago. I upload them to the solaris server. Then I...
1,704
Posted By vsekvsek
ok putting that in I get this msg from the output...
ok putting that in I get this msg from the output

"find: incomplete statement"

This is my complete statement thats not working. What wrong with it?...
1,704
Posted By vsekvsek
Another crontab question
Hey out there

This is all I have in my crontab file. I know the crontab works because it was already out there and working. I simply replaced the existing with my line of code below to see if it...
5,453
Posted By vsekvsek
This is the line I have now working find...
This is the line I have now working
find /prod/app/$LOGNAME/data/audit/pdf -type f -name '*.pdf' -exec rm {} \;
$logname is just a user login name. I hardcoded an actual file folder there too and...
5,453
Posted By vsekvsek
thanks for responeses. So playing around...
thanks for responeses.

So playing around with this from a command line I couldnt get my year old pdf files to be removed unless I took out the "-mtime +30" completely.
Why is that? Does the...
5,453
Posted By vsekvsek
deleting files in sub directories!
Hello out there,
I want to setup a crontab feature to remove temporary pdf files from sub directories that are older than 30 days. I want to presevere the directory structer though. I got this far...
5,248
Posted By vsekvsek
.properties file and new line feeds
Hi,
I have a .properties file that a read in some values in an .sh file but everytime I put it out on the server it fails.
If I copy and paste the values of the .properties file on my local machine...
1,408
Posted By vsekvsek
it gives the memory setting like "Xmx765m" or...
it gives the memory setting like "Xmx765m" or something similair
1,408
Posted By vsekvsek
yes, I will make changes thanks ----------...
yes, I will make changes thanks

---------- Post updated at 12:56 PM ---------- Previous update was at 12:50 PM ----------

hmm, strange
So if I do this
MEMORY= '-Xmx'$maxMemSize
my worker...
1,408
Posted By vsekvsek
My script is working but why do I get this msg?
Hi,
I have a script to determine the max memory to set a worker to start up at. The variable will need to end up being "-Xmx512m" or "-Xmx256m" or "-Xmx768m."
Everything works fine BUT when I set...
2,290
Posted By vsekvsek
I finally got it working. My problem? I...
I finally got it working. My problem? I apparently saved/or ftp'ed the .properties in a non ascii format. grrrrrrrr.
thanks for responses tho

---------- Post updated at 01:22 PM ----------...
2,290
Posted By vsekvsek
Thanks for respones. I changed it to below. I now...
Thanks for respones. I changed it to below. I now get an output of blank line followed by "TEST". So my memSize variable apparently gets modified but never displays. Am I doing something still wrong...
2,290
Posted By vsekvsek
I just set the file that way. I can change it...
I just set the file that way. I can change it around either way. thanks will try this.

---------- Post updated at 12:19 PM ---------- Previous update was at 10:59 AM ----------

Hmm. Its not...
2,290
Posted By vsekvsek
Whats wrong with my script?
I am trying to find a value within a properties file and declare it into a variable. Script below. I want the "memSize" to be the branch from the properties file. Right now it always tells me "Not...
Showing results 1 to 25 of 26

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