Hi All,
I have a RPM for an Java based application. Currently it works fine.
But recently I want to implement that when newer packages gets installed over the older one, the rpm should only update the older files with the newer one (I know this could be done by rpm -Uvh xxx.rpm), but it... (0 Replies)
Hi All,
Can anyone help to write the script to check files updation?
i have files as mentioned below. which will be updated some time.
i just want to check the last file is updating the data for last 15 mins or not.
if its not updating i want to print NOT OK. if its updating data i want... (1 Reply)
Hi All,
can anybody explain me how to ftp files from local system to unix server using Shell scripting without using any softwares.
i have developed some code but its not wrking.
lclpath=/dba58/d039/ftppubd/ajay
echo $lclpath
cd $lclpath
user='rajesh'
pswd='rajesh'
host="3.209.136.253"... (5 Replies)
Hi friends,
I am trying to check if the two files i am expecting are created in a specific location.
if both files does not exist, do an echo
if -a ]; then
echo "files not found"
fi
It gives me the following message:
bash: Please help! :) (3 Replies)
Hi All,
I'm a newbie in Linux Programming.:)
Got some 500 processes running and I have around 20-30 logs updating for every 2mins on a server. The logs which i'm referring usually contains book name,run ids(not PID's),process name etc etc.
I'm interested in finding out whether some particular... (1 Reply)
I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis.
file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
Hi,
I have the shell script requirement mentioned below :
List all java and c files or all files in directory and sub directories' in folder structure in current dir.
then search for pattren1 in all files globally and replace with other string .
And also check the date... (3 Replies)
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
i have 3 regions like AWS,EMEA,APJ and i use to get 3 files like a,b,c files at 3 am ust for AWS region in common shared path and x,y,z files At 10 am ust for EMEA and 1,2,3,4,5 files at 11 pm UST for APJ region. In this files name wont change daily it remain same but the file name is not same for... (2 Replies)
Discussion started by: saranath
2 Replies
LEARN ABOUT CENTOS
fixfiles
fixfiles(8)fixfiles(8)NAME
fixfiles - fix file SELinux security contexts.
SYNOPSIS
fixfiles [-v] [-F] [-B] [ -N time ] [-l logfile ] { check | restore|[-f] relabel | verify } [[dir/file] ... ]
fixfiles [-v] [-F] [ -R rpmpackagename[,rpmpackagename...] ] [-l logfile ] { check | restore | verify }
fixfiles [-v] [-F] -C PREVIOUS_FILECONTEXT [-l logfile ] { check | restore | verify }
fixfiles [-F] [-B] onboot
DESCRIPTION
This manual page describes the fixfiles script.
This script is primarily used to correct the security context database (extended attributes) on filesystems.
It can also be run at any time to relabel when adding support for new policy, or just check whether the file contexts are all as you
expect. By default it will relabel all mounted ext2, ext3, xfs and jfs file systems as long as they do not have a security context mount
option. You can use the -R flag to use rpmpackages as an alternative. The file /etc/selinux/fixfiles_exclude_dirs can contain a list of
directories excluded from relabeling.
fixfiles onboot will setup the machine to relabel on the next reboot.
OPTIONS -B If specified with onboot, this fixfiles will record the current date in the /.autorelabel file, so that it can be used later to
speed up labeling. If used with restore, the restore will only affect files that were modified today.
-l logfile
Save the output to the specified logfile
-F Force reset of context to match file_context for customizable files
-f Clear /tmp directory with out prompt for removal.
-R rpmpackagename[,rpmpackagename...]
Use the rpm database to discover all files within the specified packages and restore the file contexts. (-a will get all files in
the RPM database).
-C PREVIOUS_FILECONTEXT
Run a diff on the PREVIOUS_FILECONTEXT file to the currently installed one, and restore the context of all affected files.
-N time
Only act on files created after the specified date. Date must be specified in "YYYY-MM-DD HH:MM" format. Date field will be passed
to find --newermt command.
-v Modify verbosity from progress to verbose. (Run restorecon with -v instead of -p)
ARGUMENTS
One of:
check print any incorrect file context labels, showing old and new context, but do not change them.
restore
change any incorrect file context labels.
relabel
Prompt for removal of contents of /tmp directory and then change any incorrect file context labels to match the install file_con-
texts file.
verify List out files with incorrect file context labels, but do not change them.
[[dir/file] ... ]
List of files or directories trees that you wish to check file context on.
AUTHOR
This man page was written by Richard Hally <rhally@mindspring.com>. The script was written by Dan Walsh <dwalsh@redhat.com>
SEE ALSO setfiles(8),restorecon(8)
2002031409 fixfiles(8)