04-18-2013
I apologize for not seeing that the post subject clearly said "in perl scripting".
Isn't there anyone on the forum who does perl scripting who could take a look? The program logic is all there.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Discussion started by: MKNENI
4 Replies
2. UNIX for Dummies Questions & Answers
can anyone please suggest me on ideas to write a script which has to go back to 100 days from 'current date' and print the date of each day starting from 100th day to current day. (korn shell please)
Thanks
Pavan (5 Replies)
Discussion started by: pavan_test
5 Replies
3. Shell Programming and Scripting
Hi,
I have start date and end date in the following format. I need to check the current date is greater than the start date and less than the end date. if i use the command date --date "Tue 6:00 AM", it takes next Tues day not the current week's Tues day. Is there a way to get the current Tues... (9 Replies)
Discussion started by: bharathappriyan
9 Replies
4. UNIX and Linux Applications
Hi
I have a table with name, date in format DD.MM.YYYY.
I need to something like this (I try to explain in pseudo code)
if SYSDATE (current date) minus 6 months > $expiry date
print OK
else print NOK with $name and $expiry date
I know this is possible with Oracle. How to do this... (0 Replies)
Discussion started by: slashdotweenie
0 Replies
5. Shell Programming and Scripting
i would like to know how to append current date in a filename with .tgz extension.
#!/usr/bin/perl
my $date = `date + %Y%m%d`;
system("sudo mv /tmp/nyucs01_config_backup.tgz /misc/nyucs01_config_backup_$date.tgz");
im getting this error message:
sh: line 1: .tgz: command not found (7 Replies)
Discussion started by: linuxgeek
7 Replies
6. Shell Programming and Scripting
Hi All,
Want to get all dates and Julian week number for that date between the start date and end date. How can I achive this using perl?
(To achive above functionality, I was connecting to the database from DB server. Need to execute the same script in application server, since databse... (6 Replies)
Discussion started by: Nagaraja Akkiva
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am new to unix and I am stuck on how to compare two .zip file with date stamp in my directory. I need to compare out of the two file which is oldest to current date and unzip it after that done continue to unzip the second zip file.
Thanks for your help. (5 Replies)
Discussion started by: lilvi3tboix1
5 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
Anyone who knows how to compare the current date with the a file containing a date, say for example I have a file that looks like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server6
Fri Dec 16... (7 Replies)
Discussion started by: rymnd_12345
7 Replies
9. Shell Programming and Scripting
$beginDate = substr(DateCalc("today", "-7Days"),0,8);
This fetches the date 7 days back
Can I fetch the date before 7 years from todays date in Perl using same syntax
Use code tags, see PM. (3 Replies)
Discussion started by: parthmittal2007
3 Replies
10. Shell Programming and Scripting
I have a requirement as follows.
when i pass a date to the perl script, it has to calculate the current date - 8 months and output the date back to the shell script in date format (YYYY-MM-DD).
Current date - 8 months is not constant.. because leap year, and the months jan, mar, may,.... has... (4 Replies)
Discussion started by: kmanivan82
4 Replies
LEARN ABOUT DEBIAN
xowish
xowish(1) XOTcl Applications xowish(1)
__________________________________________________________________________________________________________________________________________________
NAME
xowish - Graphical shell containing object-oriented scripting language XOTcl
SYNOPSIS
xowish ?fileName arg arg ...?
_________________________________________________________________
DESCRIPTION
xowish is a shell-like application that reads XOTcl commands from its standard input or from a file and evaluates them. In addition to xot-
clsh it provides graphical user interface support for TK widgets.
XOTcl (XOTcl, pronounced exotickle) is an object-oriented scripting language based on MIT's OTcl. It is intended as a value added replace-
ment for OTcl.
Scripting languages, like Tcl, are designed for glueing components together, provide features like dynamic extensibility and dynamic typing
with automatic conversion, that make them well suited for rapid application development.
The basic object system of XOTcl is adopted from OTcl. The object system enables us to define objects, classes, and meta-classes. Classes
are special objects with the purpose of managing other objects. ``Managing'' means that a class controls the creation and destruction of
its instances and that it contains a repository of methods accessible for the instances. Every object may be enhanced with object-specific
methods. XOTcl supports single and multiple inheritance. All relationships in XOTcl, including class and superclass relationships, are com-
pletely dynamic and can be introspected. Through method chaining without explicit naming of the intended method, ambiguities in name reso-
lution of methods are avoided. This way a shadowed method can be ``mixed into'' the execution of the current method.
XOTcl combines the ideas of scripting and object-orientation in a way that preserves the benefits of both of them. It is equipped with sev-
eral new language functionalities that help building and managing complex systems. We added the following support:
Dynamic Object Aggregations, to provide dynamic aggregations through nested namespaces (objects).
Nested Classes, to reduce the interference of independently developed program structures.
Assertions, to reduce the interface and the reliability problems caused by dynamic typing and, therefore, to ease the combination of many
components.
Meta-data, to enhance self-documentation of objects and classes.
Per-object mixins, as a means to improve flexibility of mixin methods by giving an object access to several different supplemental classes,
which may be changed dynamically.
Per-class mixins, as a means to improve flexibility of mixin methods to a class, all instances of the class have access to the mixed in
methods like for multiple inheritance, but without the need of intersection classes.
Filters as a means of abstractions over method invocations to implement large program structures, like design patterns.
Dynamic Component Loading XOTcl integrates the Tcl package loading with architectrual support for integration with object-oriented con-
structs. Moreover, it provides tracking/tracing of component loading.
KEYWORDS
argument, interpreter, prompt, script file, shell
XOWish xowish(1)