Thanks for your reply. I tried below code with and without -t but now it is printing any file name. It creating 2 file in dir. (XXCU_DATA_TOP/AP/in/123) with name 1)201708010000 and 2) startfile. but i dont want to create any new file... I wanted to display the name of the files exist on the dir. (XXCU_DATA_TOP/AP/in/123). I am able to display the files from the dir with code2 but i wanted to add the from date paramter so based on parameter i need to display the file names
CODE
CODE2
Last edited by Don Cragun; 10-13-2017 at 04:41 AM..
Reason: Add CODE and ICODE tags.
Hi
I need to pass a date argument with my shell script. Can any one send me code for the same.
eg For 15th Aug 2006. Iwant to pass parameter like this
./startenv.sh 08/15/2006.
Everyday date argument must change. Will the below code work ?
./startenv.sh date '+%m/%d/%y'
THanks... (1 Reply)
Hi All,
I have a crontab entry for every 5 min running.
5 * * * * /tmp/scripts/ksh/CsVues_H.sh `date +%Y%m%d_%H` >> /tmp/scripts/ksh/Cronresult.log
and I am passing the date parameter. ( `date +%Y%m%d_%H` )
But the parameter values which i am expecting inside the script is... (6 Replies)
Hi All
I have a shell script which calls all the Teradata Utiltyes . There is a sudden change in the requirment .
What i'm asked to do is
pass on the DATE to the shell script which should take the date automatically and run the utilityes.
i.e. the date should not be passed on... (5 Replies)
Hello Everyone,
I have been trying to complete a shell script where, I need to increment the date depending on the file (depending on the date) availability on the remote server.
i.e.
Basically, I will be passing a counter (like parameter 1 or 2 or 3 or 4).
First I will check for the... (1 Reply)
I need to execute a .ksh from command line. The ksh calls a control file and has 3 parameters. First parameter is a csv file, second the target table in oracle and third parameter is a date parameter.
I am attempting the below from the ksh command line
{code} => testfile.ksh filname.csv... (1 Reply)
I have a file with timestamp in the file name
FILE=DETAIL_20120419141952_CODE.txt
I am using the below expression to derive the file name
FILE=DETAIL_$(date +'%Y%m%d')*_CODE.txt
echo gives me correct filename
but when I call it as a paramter to another script its being taken as.
... (3 Replies)
Hi,
I have a trigger file which looks like this abcdefgh_YYYYMMDD.trg The YYYYMMDD is the year, month and the date. So for example today the trigger file would be abcdefgh_20130703.trg similarly tomorrow it would be abcdefgh_20130704.trg
I need to write a script to check if the trigger file... (2 Replies)
Hi All,
How do i get the last date of a month in Unix based on a parameter value.
My requirement is if i pass 03/05/2014 as parameter, then i shud get the output/return value as 2/28/2014
If i pass 03/31/2014 as parameter, the output/return value should be 03/31/2014 itself.
Also,... (2 Replies)
Hi,
I have a requirement where I have to pass Date to a script and get the day from it.
Ex If parameter is 2015-09-29
The output should be Tuesday.
Can you please tell me how to get that? (6 Replies)
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
LEARN ABOUT CENTOS
pkla-admin-identities
PKLA-ADMIN-IDENTIT(8) pkla-admin-identities PKLA-ADMIN-IDENTIT(8)NAME
pkla-admin-identities - List pklocalauthority-configured polkit administrators
SYNOPSIS
pkla-admin-identities [--help]
pkla-admin-identities [--config-path config-path]
DESCRIPTION
pkla-admin-identities interprets configuration files described below to determine which users polkit(8) considers administrators, using a
non-JavaScript configuration file format described below.
Note: Determining which users are considered administrators is driven by JavaScript rules as described in polkit(8). pkla-admin-identities
is called by a JavaScript rule file named 49-polkit-pkla-compat.rules; other JavaScript rules with a higher priority may exist, so the
pkla-admin-identities configuration may not necessarily govern the final decision by polkit(8).
The ordering of the JavaScript rule files and the ordering of pkla-admin-identities configuration files is not integrated and uses
different rules; the pkla-admin-identities configuration evaluation is happens at a single point within the JavaScript rule evaluation
order.
pkla-admin-identities is an internal helper program of pkla-polkit-compat. You shouldn't need to run it directly, except for debugging
purposes.
Configuration is read from files with a .conf extension in the /etc/polkit-1/localauthority.conf.d directory. All files are read in
lexicographical order (using the C locale), meaning that later files can override earlier ones. The file 50-localauthority.conf contains
the settings provided by the OS vendor. Users and 3rd party packages can drop configuration files with a priority higher than 60 to change
the defaults. The configuration file format is simple. Each configuration file is a key file (also commonly known as a ini file) with a
single group called [Configuration]. Only a single key, AdminIdentities is read. The value of this key is a semi-colon separated list of
identities that can be used when administrator authentication is required. Users are specified by prefixing the user name with unix-user:,
groups of users are specified by prefixing with unix-group:, and netgroups of users are specified with unix-netgroup:. See the section
called "EXAMPLE" for an example of a configuration file.
pkla-admin-identities outputs the resulting configuration of administrator identities, one identity per line, using the same format
(including e.g. the unix-user: prefix). If no administrator identities are configured in the above-described configuration files, the
output will be empty.
OPTIONS -h, --help
Write a summary of the available options to standard output and exit successfully.
-c, --config-path=config-path
Search for configuration files in config-path instead of the default /etc/polkit-1/localauthority.conf.d.
EXIT STATUS
pkla-admin-identities exits with 0 on success (even if there are no administrator identities), and a non-zero status on error.
FILES
/etc/polkit-1/localauthority.conf.d
Default directory containing configuration files.
EXAMPLE
The following .conf file
[Configuration]
AdminIdentities=unix-group:staff
specifies that any user in the staff UNIX group can be used for authentication when administrator authentication is needed. This file would
typically be installed in the /etc/polkit-1/localauthority.conf.d directory and given the name 60-desktop-policy.conf to ensure that it is
evaluated after the 50-localauthority.conf file shipped with pkla-polkit-compat. If the local administrator wants to override this (suppose
60-desktop-policy.conf was shipped as part of the OS) he can simply create a file 99-my-admin-configuration.conf with the following content
[Configuration]
AdminIdentities=unix-user:lisa;unix-user:marge
to specify that only the users lisa and marge can authenticate when administrator authentication is needed.
AUTHOR
Written by David Zeuthen <davidz@redhat.com> with a lot of help from many others. Adapted by Miloslav Trma <mitr@redhat.com>.
SEE ALSO polkit(8)polkit-pkla-compat May 2013 PKLA-ADMIN-IDENTIT(8)