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)
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Hi,
I am trying to display future date from the current date but unable to do so in UNIX (not in PERL). For eg: if today is March 5 then I want a variable wherein I can store Mar 7 date, but unable to get the future date from the current date.
I have tried many possible ways as mentioned below... (11 Replies)
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Hi
I have file with number status and date1 and date1 field,
want add a column today between column date1 and date2.
file1.txt
number status date1 date2
===== ==== === =====
34567 open 27/06/13 28/06/13
45678 open 27/06/13 28/06/13
43567 open 27/06/13 28/06/13 ... (1 Reply)
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)
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 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 FREEBSD
hx509_env_find
hx509 enviroment functions(3) Heimdalx509library hx509 enviroment functions(3)NAME
hx509 enviroment functions -
Functions
int hx509_env_add (hx509_context context, hx509_env *env, const char *key, const char *value)
int hx509_env_add_binding (hx509_context context, hx509_env *env, const char *key, hx509_env list)
const char * hx509_env_lfind (hx509_context context, hx509_env env, const char *key, size_t len)
const char * hx509_env_find (hx509_context context, hx509_env env, const char *key)
hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char *key)
void hx509_env_free (hx509_env *env)
Detailed DescriptionFunction Documentation
int hx509_env_add (hx509_context context, hx509_env * env, const char * key, const char * value)
Add a new key/value pair to the hx509_env.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to add
value value to add
Returns:
An hx509 error code, see hx509_get_error_string().
int hx509_env_add_binding (hx509_context context, hx509_env * env, const char * key, hx509_env list)
Add a new key/binding pair to the hx509_env.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to add
list binding list to add
Returns:
An hx509 error code, see hx509_get_error_string().
const char* hx509_env_find (hx509_context context, hx509_env env, const char * key)
Search the hx509_env for a key.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
Returns:
the value if the key is found, NULL otherwise.
hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char * key)
Search the hx509_env for a binding.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
Returns:
the binding if the key is found, NULL if not found.
void hx509_env_free (hx509_env * env)
Free an hx509_env enviroment context.
Parameters:
env the enviroment to free.
const char* hx509_env_lfind (hx509_context context, hx509_env env, const char * key, size_t len)
Search the hx509_env for a length based key.
Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
len length of key.
Returns:
the value if the key is found, NULL otherwise.
Version 1.5.2 11 Jan 2012 hx509 enviroment functions(3)