If you want crontab to run without sending email, make the command not generate any output. Many commands have a -q or --quiet switch to make them not generate output. Otherwise you can redirect the output to a file or /dev/null.
But instead of using cron, if you are willing to accept sloppy timing, you can just keep one script running constantly and put it to sleep for a minute.
This assumes you have it running in a dedicated shell and you stay logged in. But if you want to log out and let run, you can use screen (install the screen package if you don't have it--it's quite valuable).
But instead of using cron, if you are willing to accept sloppy timing, you can just keep one script running constantly and put it to sleep for a minute.
There's no need for sloppy timing:
Quote:
This assumes you have it running in a dedicated shell and you stay logged in. But if you want to log out and let run, you can use screen (install the screen package if you don't have it--it's quite valuable).
There's no need for screen. Use nohup and put it in the background.
It executes the command every 60 seconds plus the time it takes to execute the command.
sorry, I must be thick-sculled - I'm having hard time parsing this sentence.
Chris, could you elaborate a little bit more and why your other suggestion is any better.
In 2 words or less.....
I have values below for which diff field is giving error like
"invalid time interval" in teradata
Might be it is not doing calculation anymore after exceeding minute(4) value
END_TS 2/2/2018 08:50:49.000000
START_TS 1/5/2018 17:30:02.000000
SLA_TIME 23:59:59.000000
select... (0 Replies)
topfunc()
{
top
}
topfunc
Here i used the top command inside a function,and i called the function.
when executing this bash file i get all the process which are using by the kernel
i just want to display only the first 5 running process.
is it possible? (7 Replies)
We have the below records where we need record count of every 30 minute like 00:01 to 00:30 so in that we will have 48 record count in 24 hrs , and also we need sum of record count from 00:01 to 23:30. Please find sample data as well.
00:01 21
00:02 23
00:03 34
00:04 34
00:05 30... (10 Replies)
I have written the below query to genrate a telephone.I am passing account number from oracle database.
I am calling 2 scripts which generate the bill
1. bip.sh (it runs in the background)
2.runXitInvoice_PROFORMA_integ
bip.sh generates a number which runXitInvoice_PROFORMA_integ
uses.How... (7 Replies)
Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand.
this is my log:
xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 Replies)
I have a text file called 'tomcat_temp_out'.
I want to get only last 5 minute worth of data from this file and redirect those data into another fule.
Could you please help to work on this? (2 Replies)
Hi All,
I am new to perl and have been trying to write a short script to check a process.Though i havent reached to the stage where i can match the output.
I am trying to pass a variable x with value /opt/RGw/csbp-base/CSBP_BAT.01.00.05/csbp_BAT.01.00.05.jar
and then pass another variable... (2 Replies)
Hi
If we have for example a disk that is experiencing problems, ie read errors etc, a message will get generated via syslog every one minute....I come in the morning to hundreds upon hundreds of the same message. Is there anyway to change this to say 5 minutes or maybe 10 mins etc so that it... (1 Reply)