Search Results

Search: Posts Made By: jamesbond
3,866
Posted By jamesbond
monitoring /tmp and /var/tmp for suspicous activity
Hello,

does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present?

Maybe there...
22,868
Posted By jamesbond
how to unsetenv ?
I executed the following lines twice (accidentally)

setenv JAVA_HOME=/usr/local/jdk1.1.8
setenv PATH $JAVA_HOME/bin:$PATH

I'm in the tcsh shell (freebsd 4.1.1)
When I do : echo $PATH it shows...
2,288
Posted By jamesbond
Recon thank you, However this doesn't...
Recon thank you,


However this doesn't hold the year, how can I determine the year?
The 'stat' command is not available on this server.

I can assign the modification date to a variable like...
2,288
Posted By jamesbond
zip -t modificationdate_of_file
Hi,

how can I retrieve the modification date of a file and convert it to the following format : mmddyy ?

In the script I would have the $modification_date_of_file variable holding the value in...
12,012
Posted By jamesbond
tar --newer = tar --newer-mtime ?
Hi,

I have the following question :

As far as I know unix doesn't store file creation dates.
Would that imply the following?

tar -cvzf backup.tar --newer

is equal to:

tar -cvzf...
4,441
Posted By jamesbond
Thank you both for your information! One...
Thank you both for your information!

One more question though:

Would it be possible to switch to 'single user mode' and back without rebooting?
If so, how is this done?
(I've searched the...
4,441
Posted By jamesbond
backup : files being modified while tarring
I would like to back up several directories weekly using a cronjob.

I'm not experienced in UNIX, but I would start like this:

tar -cvf backup.tar dir1 dir2 dir3

Now if a file is being...
47,304
Posted By jamesbond
Thank you for your help! I ended up with...
Thank you for your help!

I ended up with this :

find /path_to_apache_logs -name "access_log.*" -mtime 1 -exec rm {} \;

One thing I'm wondering about:

I tried 3 things regarding the...
47,304
Posted By jamesbond
how to delete files by date
My apache logs are saved in the following format (using rotatelogs):

Oct 8 01:59 access_log.1002412800
Oct 9 01:55 access_log.1002499200
Oct 10 01:58 access_log.1002585600
Oct 11 01:56...
Showing results 1 to 9 of 9

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