9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Team,
I have a to run a script based on a date present in a different file which updates everyday. Kindly help with the solution.
My current execution : ksh scriptname.sh 10152019. But here i want to enter this date from a file which gets updated daily.
My appraoch :
date file location:... (3 Replies)
Discussion started by: midhun3108
3 Replies
2. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
How would i write a shell script to run the code from one date to another date EXample 2014-01-01 to 2014-02-28, can i any provide some clue on this (4 Replies)
Discussion started by: vikatakavi
4 Replies
4. Shell Programming and Scripting
Hello all,
I'm trying to write a script to gather and send data and it works just fine at the bash command line, but when executing from CRON, it does not run properly.
My scripting skills are pretty limited and there's probably a better way, but as I said it works at the command line, but... (12 Replies)
Discussion started by: rusman
12 Replies
5. Shell Programming and Scripting
i need to run one script inside of other, and there is some terms
- main script in scheduled in cron for everyday runing every 5min
- i need to run /tmp/script2.sh after first 3 days in month
- i need to run /tmp/script2.sh from 7-9AM, main script is runining all day
all recommendations are... (1 Reply)
Discussion started by: waso
1 Replies
6. Shell Programming and Scripting
how to run an already developed script run against a list of ip addresses solaris 8 question.
the script goes away and check traffic information, for example
check_GE-VLANStats-P3 1.1.1.1
and returns the results ok.
how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies
7. Shell Programming and Scripting
Hi,
I have these changes needed to modify a shell script that will run on a specific date of a month, below pseudocode, appreciate any answers..thanks..
if date of the month is 26th then
..event 1
fi
if date of the month is 26th and month are MAR,JUN,SEP,DEC then
..event2
... (7 Replies)
Discussion started by: sonja
7 Replies
8. AIX
In my cronjob, I would like to schedule my script.sh to run every minutes. I crontab -e and have in line below but it didn't seems to run at all.
* * * * * script.sh
When I run it manually, I can run it. Is that anything wrong with the above line?
If I change it to something like below,... (4 Replies)
Discussion started by: ngaisteve1
4 Replies
9. Shell Programming and Scripting
I what to find a system date in a shell script and search for it in a file in specific record.
If the record (ENDC) has the same date I what to execute another shell script.
Here is example of the file:
Can someone please help me with this ? (3 Replies)
Discussion started by: Lenora2009
3 Replies
DateTime::Locale::Base(3) User Contributed Perl Documentation DateTime::Locale::Base(3)
NAME
DateTime::Locale::Base - Base class for individual locale objects
SYNOPSIS
use base 'DateTime::Locale::Base';
DEFAULT FORMATS
Each locale has a set of four default date and time formats. They are distinguished by length, and are called "full", "long", "medium",
and "short". Each locale may have a different default length which it uses when its "$locale->date_format_default()",
"$locale->time_format_default()", or "$locale->datetime_format_default()" methods are called.
This can be changed by calling the "$locale->set_default_date_format()" or "$locale->set_default_time_format()" methods. These methods
accept a string which must be one of "full", "long", "medium", or "short".
NAME FORMS
Most names come in a number of variations. First, they may vary based on length, with wide, abbreviated, and narrow forms. The wide form is
typically the full name, while the narrow form is often a single character. The narrow forms may not be unique. For example, "T" may be
used for Tuesday and Thursday in the English narrow forms.
Many names also distinguish between "format" and "stand-alone" forms of a pattern. The format pattern is used when the thing in question is
being placed into a larger string. The stand-alone form is used when displaying that item by itself, for example in a calendar.
METHODS
All locales provide the following methods:
o $locale->id()
The locale's id.
o $locale->language_id()
The language portion of the id.
o $locale->script_id()
The script portion of the id, if any.
o $locale->territory_id()
The territory portion of the id, if any.
o $locale->variant_id()
The variant portion of the id, if any.
o $locale->name()
The full name for the locale in English.
o $locale->language()
The language name for the locale in English.
o $locale->script()
The script name for the locale in English, if any.
o $locale->territory()
The territory name for the locale in English, if any.
o $locale->variant()
The variant name for the locale in English, if any.
o $locale->native_name()
The full name for the locale in its native language, if any.
o $locale->native_language()
The language name for the locale in its native language, if any.
o $locale->native_script()
The script name for the locale in its native language, if any.
o $locale->native_territory()
The territory name for the locale in its native language, if any.
o $locale->native_variant()
The variant name for the locale in its native language, if any.
o $locale->month_format_wide()
Returns an array reference containing the wide format names of the months, with January as the first month.
o $locale->month_format_abbreviated()
Returns an array reference containing the abbreviated format names of the months, with January as the first month.
o $locale->month_format_narrow()
Returns an array reference containing the narrow format names of the months, with January as the first month.
o $locale->month_stand_alone_wide()
Returns an array reference containing the wide stand-alone names of the months, with January as the first month.
o $locale->month_stand_alone_abbreviated()
Returns an array reference containing the abbreviated stand-alone names of the months, with January as the first month.
o $locale->month_stand_alone_narrow()
Returns an array reference containing the narrow stand-alone names of the months, with January as the first month.
o $locale->day_format_wide()
Returns an array reference containing the wide format names of the days, with Monday as the first day.
o $locale->day_format_abbreviated()
Returns an array reference containing the abbreviated format names of the days, with Monday as the first day.
o $locale->day_format_narrow()
Returns an array reference containing the narrow format names of the days, with Monday as the first day.
o $locale->day_stand_alone_wide()
Returns an array reference containing the wide stand-alone names of the days, with Monday as the first day.
o $locale->day_stand_alone_abbreviated()
Returns an array reference containing the abbreviated stand-alone names of the days, with Monday as the first day.
o $locale->day_stand_alone_narrow()
Returns an array reference containing the narrow stand-alone names of the days, with Monday as the first day.
o $locale->quarter_format_wide()
Returns an array reference containing the wide format names of the quarters.
o $locale->quarter_format_abbreviated()
Returns an array reference containing the abbreviated format names of the quarters.
o $locale->quarter_format_narrow()
Returns an array reference containing the narrow format names of the quarters.
o $locale->quarter_stand_alone_wide()
Returns an array reference containing the wide stand-alone names of the quarters.
o $locale->quarter_stand_alone_abbreviated()
Returns an array reference containing the abbreviated stand-alone names of the quarters.
o $locale->quarter_stand_alone_narrow()
Returns an array reference containing the narrow stand-alone names of the quarters.
o $locale->era_wide()
Returns an array reference containing the wide names of the eras, with "BCE" first.
o $locale->era_abbreviated()
Returns an array reference containing the abbreviated names of the eras, with "BCE" first.
o $locale->era_narrow()
Returns an array reference containing the abbreviated names of the eras, with "BCE" first. However, most locales do not differ between
the narrow and abbreviated length of the era.
o $locale->am_pm_abbreviated()
Returns an array reference containing the abbreviated names of "AM" and "PM".
o $locale->date_format_long()
o $locale->date_format_full()
o $locale->date_format_medium()
o $locale->date_format_short()
Returns the CLDR date pattern of the appropriate length.
o $locale->date_formats()
Returns a hash reference of CLDR date patterns for the date formats, where the keys are "full", "long", "medium", and "short".
o $locale->time_format_long()
o $locale->time_format_full()
o $locale->time_format_medium()
o $locale->time_format_short()
Returns the CLDR date pattern of the appropriate length.
o $locale->time_formats()
Returns a hash reference of CLDR date patterns for the time formats, where the keys are "full", "long", "medium", and "short".
o $locale->datetime_format_long()
o $locale->datetime_format_full()
o $locale->datetime_format_medium()
o $locale->datetime_format_short()
Returns the CLDR date pattern of the appropriate length.
o $locale->datetime_formats()
Returns a hash reference of CLDR date patterns for the datetime formats, where the keys are "full", "long", "medium", and "short".
o $locale->date_format_default()
o $locale->time_format_default()
o $locale->datetime_format_default()
Returns the default CLDR date pattern. The length of this format is based on the value of "$locale->default_date_format_length()"
and/or "$locale->default_time_format_length()".
o $locale->default_date_format_length()
o $locale->default_time_format_length()
Returns the default length for the format, one of "full", "long", "medium", or "short".
o $locale->set_default_date_format_length()
o $locale->set_default_time_format_length()
Sets the default length for the format. This must be one of "full", "long", "medium", or "short".
o $locale->prefers_24_hour_time()
Returns a boolean indicating the preferred hour format for this locale.
o $locale->first_day_of_week()
Returns a number from 1 to 7 indicating the local first day of the week, with Monday being 1 and Sunday being 7. For example, for a US
locale this returns 7.
o $locale->available_formats()
A list of format names, like "MMdd" or "yyyyMM". This should be the list directly supported by the subclass, not its parents.
o $locale->format_for($key)
Given a valid name, returns the CLDR date pattern for that thing, if one exists.
SUPPORT
See DateTime::Locale.
AUTHORS
Richard Evans <rich@ridas.com>
Dave Rolsky <autarch@urth.org>
COPYRIGHT
Copyright (c) 2003 Richard Evans. Copyright (c) 2004-2005 David Rolsky. All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.18.2 2017-10-06 DateTime::Locale::Base(3)