08-24-2012
Hi ,
Instead of mentioning 0,5,10,.. make it as read by
*/5 * * * * /path/to/script.sh
Try this this will be running every five minutes once
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Will this be the cron setting if I want to run the script.sh file in every 10 min eveyday?
Can someone pls confirm?
Thanks in advance
C Saha (1 Reply)
Discussion started by: csaha
1 Replies
2. Post Here to Contact Site Administrators and Moderators
Hi Guys,
Since last 20-30 min Server was Too slow ..even few of times i got Database connection error.
Thanks
Sanjay Tripathi (0 Replies)
Discussion started by: SanjayLinux
0 Replies
3. Shell Programming and Scripting
Hi ,
How can i set a cronjob which needs to run every 05,20,35,50 min .
I tried 05,20,35,50 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh.. but its giving error while saving the crontab
file ....
What is the correct way ???
Thanks and Regards (4 Replies)
Discussion started by: scorpio
4 Replies
4. Shell Programming and Scripting
hi!
i have a file like the attachement.
I'd like to get for each line the min, max and average values. (there is 255 values for each line)
how can i get that ?
i try this, is it right?
BEGIN {FS = ","; OFS = ";";max=0;min=0;moy=0;total=0;freq=890}
$0 !~ /Trace1:/ {
... (1 Reply)
Discussion started by: riderman
1 Replies
5. Shell Programming and Scripting
I need help trying to grep for a error in log file for only last 15 min.
example
under /var/adm/messages i need to grep for "error 102" but only if it occured in last 15 mins?
Thanks (7 Replies)
Discussion started by: shehzad_m
7 Replies
6. Shell Programming and Scripting
I want to check the counter value for every 1 min until the particular counter value is reached and it should exit.
Counter value: 15.( For Example)
counter = 1
The start time is noted using Localtime.
How can i do this in perl?
Regards
Archana (1 Reply)
Discussion started by: vanitham
1 Replies
7. Shell Programming and Scripting
hi,
i have a file with folowing content:
STORAGE PERCENTAGE FLAG:
/storage_01 64% 0
/storage_02 17% 1
/storage_03 10% 0
/storage_04 50% 1
I need to get the value of STORAGE from those with FLAG=0 and which has the min PERCENTAGE
i am able to get the STORAGE corresponding to... (8 Replies)
Discussion started by: kichu
8 Replies
8. Solaris
Dear All
I am using Solaris8 on my sun UltraSPARC machine. Can you please let
me know what is the minimum HW requirement to install Solaris10g ?
Thank you in advance (1 Reply)
Discussion started by: hadimotamedi
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am trying to run a script in cron every 5 min in SOLARIS 10
When I do5 * * * * /path to fileor*/5 * * * * /path to file
Doesn't work. Please let me know what should I put in the cron entry
Thanks (2 Replies)
Discussion started by: Rossdba
2 Replies
10. Shell Programming and Scripting
Gents,
I have a big file file like this.
5100010002
5100010004
5100010006
5100010008
5100010010
5100010012
5102010002
5102010004
5102010006
5102010008
5102010010
5102010012
The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies
LEARN ABOUT OSX
test::script
Test::Script(3) User Contributed Perl Documentation Test::Script(3)
NAME
Test::Script - Basic cross-platform tests for scripts
DESCRIPTION
The intent of this module is to provide a series of basic tests for 80% of the testing you will need to do for scripts in the script (or
bin as is also commonly used) paths of your Perl distribution.
Further, it aims to provide this functionality with perfect platform-compatibility, and in a way that is as unobtrusive as possible.
That is, if the program works on a platform, then Test::Script should always work on that platform as well. Anything less than 100% is
considered unacceptable.
In doing so, it is hoped that Test::Script can become a module that you can safely make a dependency of all your modules, without risking
that your module won't on some platform because of the dependency.
Where a clash exists between wanting more functionality and maintaining platform safety, this module will err on the side of platform
safety.
FUNCTIONS
script_compiles
script_compiles( 'script/foo.pl', 'Main script compiles' );
The "script_compiles" test calls the script with "perl -c script.pl", and checks that it returns without error.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
Note also that the test will be run with the same perl interpreter that is running the test script (and not with the default system perl).
This will also be shown in the diagnostic output on failure.
script_runs
script_runs( 'script/foo.pl', 'Main script runs' );
The "script_runs" test executes the script with "perl script.pl" and checks that it returns success.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
The test will be run with the same perl interpreter that is running the test script (and not with the default system perl). This will also
be shown in the diagnostic output on failure.
SUPPORT
All bugs should be filed via the bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script>
For other issues, or commercial enhancement and support, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>
SEE ALSO
prove, <http://ali.as/>
COPYRIGHT
Copyright 2006 - 2009 Adam Kennedy.
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.16.2 2009-11-23 Test::Script(3)