Sponsored Content
Full Discussion: executing with system time
Top Forums Shell Programming and Scripting executing with system time Post 302492260 by rdcwayx on Sunday 30th of January 2011 07:10:24 PM
Old 01-30-2011
set in cronjob.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

executing a script for a certain amount of time

I am writing a script that takes two parameters: the name of another script and an integer that represents a number of seconds. The script must execute the second script (first parameter) for the specified number of seconds (second parameter), suspend it for the same number of seconds, and continue... (9 Replies)
Discussion started by: ponchorage
9 Replies

2. Shell Programming and Scripting

Overlapping(executing time) jobs in crontab

I do not have the luxery of a server that i can try on, so i had to post my qn here. Say i have two jobs in the cron table, the jobs are scheduled 2 mins apart. Assuming the first jobs does a lot of operations and takes > 2 mins. Will the second job be executed? Will Unix actually have a queue... (3 Replies)
Discussion started by: new2ss
3 Replies

3. Shell Programming and Scripting

System time comparison to fixed defined time

I have a requirement of checking the current system time and performing certain actions in a shell script. example: if the current system time is greater than 1400 hrs, then perform step 1,2,3 if the current system time is greater than 1000 hrs, then perform step 1,2 if the current system time... (2 Replies)
Discussion started by: zainravi
2 Replies

4. Solaris

getting time independent of system time in solaries

i am using function gethrtime() in sun solaries to get the time independent of the system time.Problem with this function is if we restart the system time will change to '0'.is there any other way to resolve this problem. thanks & regards suresh (3 Replies)
Discussion started by: suresh_rtp
3 Replies

5. Shell Programming and Scripting

Executing script at system start up

Hi I had written a piece of script . Please let me know is it possible to run / execute this script at system startup ?? Thanks in advance . (5 Replies)
Discussion started by: Ravi Pavanv
5 Replies

6. Shell Programming and Scripting

[bash] getopts not executing when called second time.

Hi, Unexpectedly, the function below doesn't seem to work when called a second time. The output shows that when the function is called the first time, it works as expected but when it is called a second time, the loop that processes the options passed to the function, with the while loop,... (2 Replies)
Discussion started by: ASGR
2 Replies

7. Programming

Date time problem while executing perl script.

Hi All, This Monday 15th March 2010, i have faced a weired issue with my Perl script execution, this script is scheduled to run at 1 minute past midnight on daily basis ( 00:01 EST ) generally for fetching previous business date , say if it is Monday it should give last Friday date, for Tuesday... (0 Replies)
Discussion started by: ravimishra
0 Replies

8. Shell Programming and Scripting

Executing AWK in a perl script using 'system'...

I have a simple perl script that looks similar to this: #!/usr/bin/perl/ # Have a lot of PERL code in the front of this script. #Would now like to execute a system command using AWK system (qq(cd /location && awk '/full/ {print $1;exit}' /myfile)); The system command in my perl script... (4 Replies)
Discussion started by: SysAdm2
4 Replies

9. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

10. Shell Programming and Scripting

Executing multiple commands in a file at same time

Hi Am having file.ksh as below wc -l file1.txt wc -l file2.txt wc -l file3.txt wc -l file4.txt i want all the commands in this file to execute in same time please help Thanks in advance (1 Reply)
Discussion started by: ragu.selvaraj
1 Replies
PERLDIG(1p)						User Contributed Perl Documentation					       PERLDIG(1p)

NAME
perldig - Dig up keywords in the local Perl documentation SYNOPSIS
# Update the index (required before first start) perldig -u # Search for a keyword perldig keyword(s) DESCRIPTION
When using "perldig" for the first time, a new index needs to be created. Just call $ perldig -u and everything happens automatically: A crawler will detect locally installed Perl documentation pages, rummage through the POD and index them. When this initial run has been completed, "perldig" is ready to process search requests: $ perldig frobnicate 1) pod/perlguts.pod 2) pod/perlxstut.pod 3) pod/perlnewmod.pod Enter number of choice: The command above shows a search for the keyword "frobnicate". Yes, that's a word used in the Perl documentation! It shows three hits and asks the user to enter a number between 1 and 3 to open the selected documentation page in a pager program (typically "less"). In there, an in-text search for the expression can be started by using the "/" (slash) command. If two or more keywords are given, the search will yield pages that contain all of them. When searching for phrases, please include quotes (make sure to quote the quotes so the shell doesn't eat them): $ perldig '"floating point"' The underlying swish-e search engine also understands expressions connected via AND and OR: $ perldig "'floating point' AND approximate AND 'real number'" To keep the index up to date, it is probably a good idea to run a cronjob every morning: 00 4 * * * /usr/bin/perldig -u >/dev/null 2>&1 If you can read German, please check out this article in the "Linux- Magazin", where this script was originally published: http://www.linux-magazin.de/Artikel/ausgabe/2003/10/perl/perl.html EXAMPLES
# Update/create the index $ perldig -u $ perldig frobnicate 1) pod/perlguts.pod 2) pod/perlxstut.pod 3) pod/perlnewmod.pod Enter number of choice: 1 [ ... perlguts man page shows ... ] FILES
"perldig" puts the swish-e index files into the folder ".perldig" in the user's home directory. LEGALESE
Copyright 2003-2005 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
2003, Mike Schilli <m@perlmeister.com> perl v5.12.4 2005-08-22 PERLDIG(1p)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy