02-13-2006
hmm that is not the case, coz ppopper says that the echo $TODAY shows fine, which means he has assigned today properly
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
Today=`date +%d%m%y``
I want to decrease the date by 1. How would we do that.
Thanks. (6 Replies)
Discussion started by: asadlone
6 Replies
2. Shell Programming and Scripting
Hello:
I have a script that requires the use of DOY (as a variable) instead of YY/MM/DD. I already obtained these parameters from downloaded files and stored them as variables (i.e. $day, $month, $year).
Is there any simple script that I could incorporate in mine to do this job?
Regards,
... (8 Replies)
Discussion started by: aabrego
8 Replies
3. Shell Programming and Scripting
Hi folks,
I need to write a script that should activate a process according to the current hour.
The process should be activatet only if the hour is between midnight (00:00) and 07:00.
How should I create the condition?
Thanks in advance,
Nir (2 Replies)
Discussion started by: nir_s
2 Replies
4. Shell Programming and Scripting
Is there date variable in bash?
for example, I have string 01-23-2010 (mm-dd-yyyy) or 23-01-2010 (dd-mm-yyyy).
How can I convert that string to date variable?
and how to do some math operation based on date?
for example, today is 12-11-2010.
I want to know date 100 days after today or 50... (3 Replies)
Discussion started by: 14th
3 Replies
5. Shell Programming and Scripting
I'm trying to set var j = to date like this:
j = $(date +%yy%m%d)
echo $j
But I'm missing something here. (3 Replies)
Discussion started by: dba_frog
3 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to add one day to the busdt variable i am extracting from a file (DynamicParam.env). I am deriving the busdt as below.
Is there any function which I can use to derive as below.
If busdt=20120910, then the new derived variable value should be 20120911
If... (2 Replies)
Discussion started by: dsfreddie
2 Replies
7. Solaris
I need to set a date varable within ksh that will set the date to the next day in the format 25-JUL-2013 - any help would be appreciated. (3 Replies)
Discussion started by: bjdamon
3 Replies
8. Shell Programming and Scripting
Hello All,
I have one question:
> cat abc.txt
BrSp_IVR_Daily_Report_last_day_,date +'%Y-%m-%d',jim,969-PP-A,DAILY,/home/jim/reports/,YES
BrSp_Status_Movements_C_,date +'%Y-%m-%d',jim,969-PP-A,DAILY,/home/jim/reports/,YES
> cat akk.ksh
#!/bin/ksh
get_data()
{
OLDIFS=$IFS
IFS=","
... (2 Replies)
Discussion started by: Ak1983
2 Replies
9. Shell Programming and Scripting
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date
#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s <<-EOF
from_date="12-Jan-2015 12:02:09"
to_date="24-Jan-2015 13:02:09"
echo \$from_date
echo... (7 Replies)
Discussion started by: raj48
7 Replies
10. UNIX for Beginners Questions & Answers
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
privgrp(5) File Formats Manual privgrp(5)
NAME
privgrp - HP-UX group privileges
DESCRIPTION
HP-UX allows subletting of limited superuser-like privileges to all users or to members of a particular group or groups. This capability
is deprecated and only existing applications should use it. The newer fine-grained privilege facilities described in privileges(5) should
be used by new applications.
The header defines the following symbolic privilege names: and
All but one of the group privileges are supported as fine-grained privileges and described in privileges(5). The one group privilege not
supported as a fine-grained privilege is:
Permits the use of the
and system calls for changing respectively the real user ID and real group ID of a process (see setuid(2)). This
behavior of is deprecated and only legacy applications should use it. Newer applications should use and respec-
tively, to achieve the same effect. (No special privileges required.)
The header defines two additional symbolic constants:
defines the maximum number of groups with special privileges.
Of this maximum, one is reserved for global privileges (granted to all processes) and the remainder can be assigned
to actual group IDs.
defines the size of the multi-word mask used
in defining privileges associated with a group ID.
The and commands and the and system calls may be used to define and query the privilege group associations.
The group privileges are automatically initialized from the contents of (see privgrp(4)) at boot time.
WARNINGS
This mechanism is deprecated and only legacy applications should use it. See privileges(5) for a description of fine-grained privileges.
SEE ALSO
getprivgrp(1), setprivgrp(1M), chown(2), getprivgrp(2), lockf(2), mpctl(2), plock(2), pset_create(2), rtprio(2), rtsched(2), serialize(2),
setgid(2), setuid(2), shmctl(2), privgrp(4), privileges(5).
privgrp(5)