Sponsored Content
Top Forums Shell Programming and Scripting Setting time for running of the script Post 302781989 by emily on Monday 18th of March 2013 07:15:27 AM
Old 03-18-2013
Kool..Smilie

thanks,
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

to compare latest logfile with the current running time of the script

how can i compare the latest log file with the current time.. consider i am running a script "a.sh" at 09:00 ( function of the script a.sh is to update the database ) this script is going to create logfile if the script is sucess in case of failure it is not going to create logfile.. ... (0 Replies)
Discussion started by: mail2sant
0 Replies

2. Shell Programming and Scripting

display time required to complete running script

hi is there any way i can display a countdown time needed to run a script? like load a counter at the beginning of the script with the estimated time and display the counter decrementing till it finishes running the script? (3 Replies)
Discussion started by: npatwardhan
3 Replies

3. Shell Programming and Scripting

Running batches of files at a time from a script

Hi I have a script that performs a process on a file. I want to know how to include a function to run a batch of files? Here is my script #!/bin/bash #---------------------------------------------------------------------------------------------------------------------- #This... (2 Replies)
Discussion started by: ladyAnne
2 Replies

4. Emergency UNIX and Linux Support

Help to optimize script running time

Dear Forum experts I have the below script which I made to run under bash shell, it runs perfectly for low records number, let us say like 100000. when I put all records (3,000,000), it's takes hours can you please suggest anything to optimize or to run in different way :-| {OFS="|";... (6 Replies)
Discussion started by: yahyaaa
6 Replies

5. Shell Programming and Scripting

Help in running a script after a particular time

Unix Gurus, I have a requirement where the shell script needs to do specific tasks after certain period of time. Daily we receive few files in a particular folder. The script does the file renaming, pass parameters to run some web services and pushes to remote FTP location. But my... (3 Replies)
Discussion started by: shankar1dada
3 Replies

6. Shell Programming and Scripting

How to know the exact running time of script!

Hi All, newbie here, I'm just wondering how can i know the exact running time of my script? Please advise, THanks, (1 Reply)
Discussion started by: nikki1200
1 Replies

7. Shell Programming and Scripting

Find the script running time and subtract from sleeptime

HI Guys, I want to find out the script running time and subtract from sleeptime. My Script Below Give me error :- #!/usr/bin/ksh timeout=100 start=$SECONDS sleep 20 end=$SECONDS echo "Time: $((end - start)) " ScTime = $((end - start)) (1 Reply)
Discussion started by: asavaliya
1 Replies

8. Shell Programming and Scripting

Example of running script with time limits?

Hi, I want to write a script that does some sort of health check on the database. It will query the database for information, some query takes long and some are quick. For example, inside the script I will do something as below: #!/bin/ksh run_query_01 & run_query_02 &... (1 Reply)
Discussion started by: newbie_01
1 Replies

9. Shell Programming and Scripting

Kill long running script, if it crosses the threshold time

Hi, I need a script to kill the process if it running for long time. Inputs for the scripts: 1.test.sh (will be running fron cron scheduler) 2.1 hr (ie threshold_time - if the test.sh is running for more than 1 hr test.sh has to kill) Thanks, Divya (1 Reply)
Discussion started by: Divya Nochiyil
1 Replies

10. Shell Programming and Scripting

Killing the process if running for long time in script

I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line. The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour. Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies
ISDNRATE(1)						      General Commands Manual						       ISDNRATE(1)

NAME
isdnrate - Print telefon rates and various info from rate-files(5). SYNOPSIS
isdnrate -bbest -dday -ffrom -hhour -llen -o -pprovs -s -ttakt -vverbose -xexclude -C -Ddet -Gdata -H -L -N -Osocketfile -Ppiddir -Ssort -T -U -V -Xexplain -Z NUMBER ... All options are optional. DESCRIPTION
The isdnrate program prints various information from rate-files(5). It's main purpose is the calculation of telefon rates from your loca- tion to an arbitrary destination at a certain time and of a certain length for all the providers in a rate-file. NUMBER A telefon number may be 1234 a local area number 01234 a different area in your country +12345 a foreign country China text for a foreign country Paris a town US a code as defined in country.dat. Internet a Service name (if option -s is also given). Note that currently only city names in AT, DE, NL are supported plus some international capitals. Note also, spaces in country- or service names may be given as underscores. OPTIONS -bbest Print only best providers. Default is all. -dday Calc rates for day. day can be one of dd day of current month dd.mm day month dd.mm.yy[yy] day, month, year W Weekday N Weekday - night E Weekend Default is now. -ffrom Callers location. Default ist from isdn.conf. -hhour Time hh[:mm[:ss]] of call. Default is now. -llen Length of call in second. Default value is 153 secs. -o Show only booked providers. These are providers, which are listed in rate.conf. -p provider[,provider...] Print only info for given provider(s). provider is the provider number, without the leading VBN, or provider_variant if there are more variations, or B for business providers. -s Consider NUMBER as the name of a service and print all numbers / providers, which supply this service. -ttakt Print only providers, which have calculation impulses smaller or equal to takt. Default is 9999. -vverbose Set verbose level. -x provider[,provider...] Exclude these provider(s). DISPLAY AND RUN OPTIONS -C Connect to a running isdnrate daemon. This avoids long startup times. -D Start as a daemon, waiting for connections from a client. The socket /tmp/isdnrate is created, which clients can connect to. -D2 Start as a daemon and go background. -CD3 Stop a running daemon. -Gn Print raw data for connection. n may be currently 97,98,99. -H Print a header. -L Print a semicolon separated list of vbn ; providername ; zone ; day ; time ; currency ; charge ; basicprice ; price ; duration ; charge/min ; takt ; minimum price -N Show info about following numbers. If no provider is given, the preselected provider is used. -Osocketfile Write socket to given filename on start of daemon. Default is tmp/isdnrate. -Ppiddir Write own PID to piddir/isdnrate.pid on start of daemon. -Ssort Sort output by sort, which may be v vbn or n provider name. Default is by charge. -T Print a table of charges for daytimes weekday/weekend. -V Print version info and exit. -Xexplain Print additional information for charge or from rate-file. explain may be 1 (zone) 2 (charge/min, zone, day, time) 50 International areas 51 National zones 52 Services COMMENT Print C:COMMENT: info from rate files. If -s is given, the number of the service is also listed with -X1 or -X2. -Z Print info for LCR e.g. isdnrate -p1 -ZX 19430 shows the rate for provider 1 and the cheapest rate to this service. Note: Various output options may not be used together. If you gave conflicting options you'll see a warning. Note also: Sort by name or providernumber and -bbest will bring you the first best providers in sorting order, not the cheapest. And finally: Some options like -X50, -X51, -X52, -D, -V don't require a telefon NUMBER. FILES
rate-CC.dat, holiday-CC.dat, dest.gdbm, zone-CC-PPP.gdbm, isdn.conf, telrate.cgi and more. Note: The extension of zone- and dest data files depends on configuration. Recently .cdb is used. EXAMPLES
isdnrate -D2 Start the isdnrate daemon. isdnrate -D2 -P /var/run -O /tmp/isdnr_socket Start the isdnrate daemon, write isdnrate.pid to /var/run and create thew given socket. isdnrate -CH -b5 -f01 -l120 Attersee Connect to running daemon, print a header and the best 5 rates from Vienna (01) to destination Attersee for a connection length of 2 Min- utes. isdnrate -CX -p1_2,24 +1 Show rates and zones for destination USA for providers 1_2 and 24. isdnrate -CX -H -dW -b5 US CA Show a header, rates and zones for destinations USA and Canada for best 5 providers during workday. isdnrate -CHoX US Show header, rate and zone for destination USA for booked providers only. isdnrate -CsX -l60 Internet Show rates and numbers for service Internet for a 1 minutes call. isdnrate -CZ 19430 Show rates and the best provider for this (service-)number. isdnrate -CD3 Stop the running isdnrate daemon. SIGNALS
A isdnrate daemon restarts (and therefore rereads its configuration) on getting a SIGHUP signal. SEE ALSO
rate-files(5), isdnlog(8), isdn.conf(5) BUGS
Definitly yes. Sometimes more then one daemon can be started, sometimes the socket is not removed, when the daemon terminates. if this hap- pens ('socket in use'), do a rm /tmp/isdnrate and try again. AUTHORS
Andreas Kool <akool@isdn4linux.de> started this program. Leopold Toetsch <lt@toetsch.at> continued the work and brought this man page to you. Michael Reinelt <reinelt@eunet.at> did the calculation engine and various tools for it. -lt- 2000/09/01 ISDNRATE(1)
All times are GMT -4. The time now is 03:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy