10-06-2008
Shell scripting Program
Hi all,
I am new to this forums. I need one help from urs.
My requirement is to fetch the records from the log file for every 15 mins and write the datas to the new file...
The log file which is located in the 21/09/2008 directory.
In 21/09/2008 directory, number of log files are there.
so every log file contains differnet information respect to the process details.
The log file looks like below:
start time: 22:00
End time :24:00
Process name: abcd
Start date: 21/09/2008
Elapse time: 120mins
when user give these Input parameters are :
Date: sysdate(or any date which user likes)
I want to execute the query automatically every 15 mins.
I want to write the data in the current directory from which we ran the script in the format of .xls file
The output file looks when i give the input parameters date:21/09/2008
it will search all the files which is located in the 21/09/2008 directory and read into the .xls file
process name start date elapse time start time end time
abcd 21/09/2008 120mins 22:00 24:00
start time: 22:00
End time :24:00
Process name: abcd
Start date: 21/09/2008
Elapse time: 120mins
please asssit me how to do that...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
2. Shell Programming and Scripting
Hi all,
I am new comers to this forums. I need one help from urs.
My requirement is to fetch the records from the log file for every 15 mins and write the datas to the new file...
The log file which is located in the 21/09/2008 directory.
In 21/09/2008 directory, number of log files... (1 Reply)
Discussion started by: balaji23_d
1 Replies
3. Shell Programming and Scripting
Hi,
I have one script program (lod0361.job) ,where i am using errorlog() function with some arguments like below.
call errorlog ("---- unload to \"TESTNAME.out\" select * from TESTNAME")
but when i run the lod0361.job then i am getting below errors.
call errorlog ("---- load from... (1 Reply)
Discussion started by: deepakagrawal13
1 Replies
4. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
5. What is on Your Mind?
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies
6. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
7. Shell Programming and Scripting
Hello,
I'm looking to script the basic instant messaging program we have in my company, it's called "oi", it's working as follow:
# oi $user
then we have to launch it...
after finding the system of the user it's asking for the message...
then on a new line we have to hit ctrl+d
I... (2 Replies)
Discussion started by: nomadvisuals
2 Replies
8. Shell Programming and Scripting
So right now I am trying to sync an iPhoto Library file from multiple computers.
The goal being that it takes the most recently updated file (depending on which computer it was). Currently I am using Google Drive to essentially sync the newest library, however, I was curious to see if this was... (1 Reply)
Discussion started by: abudis
1 Replies
9. Shell Programming and Scripting
Hi ,
I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies
10. Homework & Coursework Questions
#! /bin/bash
# program to creat a backup copy for every deleted file or dierctores
mv -t /home/$USER/.local/share/Trash/files $1
rsync -a /home/$USER/.local/share/Trash/files /usr/share/trash
didn't work (2 Replies)
Discussion started by: rami-ali
2 Replies
LEARN ABOUT DEBIAN
isympy
isympy(1) isympy(1)
NAME
isympy - interactive shell for SymPy
SYNOPSIS
isympy [-c | --console]
isympy [ {-h | --help} | {-v | --version} ]
DESCRIPTION
isympy is a Python shell for SymPy. It is just a normal python shell (ipython shell if you have the ipython package installed) that exe-
cutes the following commands so that you don't have to:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z = symbols("xyz")
>>> k, m, n = symbols("kmn", integer=True)
So starting isympy is equivalent to starting python (or ipython) and executing the above commands by hand. It is intended for easy and
quick experimentation with SymPy. For more complicated programs, it is recommended to write a script and import things explicitly (using
the "from sympy import sin, log, Symbol, ..." idiom).
OPTIONS
-c shell, --console=shell
Use the specified shell (python or ipython) as console backend instead of the default one (ipython if present or python otherwise).
Example: isympy -c python
FILES
${HOME}/.sympy-history
Saves the history of commands when using the python shell as backend.
BUGS
The upstreams BTS can be found at <http://code.google.com/p/sympy/issues/list> Please report all bugs that you find in there, this will
help improve the overall quality of SymPy.
SEE ALSO
ipython(1), python(1)
2007-10-8 isympy(1)