Cron every day at 2PM & 3PM [closed] - shell

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm trying to figure out how to set cron to run every day at 2PM & 3PM. Is this correct?
The reason I'm asking is this is for a production server, so I need to be sure.
0 18,19 * * *

As far as I know, it should be:
0 14,15 * * ?
This assumes that you want the CRON to run at 2pm and 3pm (14:00 and 15:00) using the time of the actual server which would fire the CRON expression.
Your suggested CRON is for 6pm and 7pm, which would be correct perhaps if you were running in a timezone 4 hours ahead, but targeting 2pm in an earlier timezone.

Related

What does 'U<s' mean in ps output on Mac? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I see the following ps output. What does U<s mean? How to force it running?
root 3531 0.0 0.4 4737660 34172 ?? U<s Wed09AM 189:36.15 /System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd
U is uninterruptible wait
< is high priority
s is session leader
The last 2 are in common with other systems; I've never seen U before (uninterruptible wait is usually 'D' since disk I/O is a common case).
It can't be "forced" to run except by completion of whatever it's waiting for, which is not apparent from just the state.
How do you know it's not running? I imagine that a backup process is I/O bound so it will quite likely be in an I/O wait when you look at it - but that doesn't mean it's been waiting all alone; it could be flipping between waiting and running quite rapidly.

Is there a command to batch change time zones of files? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently went to Japan (UTC+9) from the UK, however, when I returned I forgot to change the time zone on my DLSR camera back to GMT. Since the files are now on my Linux machine, is there a way to batch change the time stamps for the pictures I have taken since I came home, so that they're on GMT rather than 9 hours ahead?
I found this, using exiftool:
exiftool "-AllDates+=1:12:28 14:54:32" -verbose *.jpg
to adjust all JPG image dates by adding 1 year, 12 month, 28 days, 14 hours, 54 minutes, 32 seconds
At photo.stackexchange: How to shift EXIF date/time created by time in days, hours, minutes?
So for shifting down all your photos by 9 hours, you could:
exiftool "-AllDates-=09:00:00" /path/to/IMG*.JPG
Then
exiftool '-FileModifyDate<DateTimeOriginal' /path/to/IMG*.JPG
For setting file system date/time from exif infos.

How to run a bash code on a certain time and day [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
The code to run a bash code on a certain time is `
anycode| at anytime:anytime
.
But how would you be able to run a code on a certain time and a certain day (e.g 10:00 on Monday).
You can use cron to do this. You need to add record like this:
0 10 * * 1 /path/to/script
0 is for minutes
10 is for hours
first * is for day of month
second * is for month
1 is for day of week (Monday)

conky: how to refresh the display values? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
why conky duplicates the display after every minute as the picture
This looks like a common issue with Conky and graphics. You can try enabling double buffering:
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
or fiddling around with the own_window, own_window_type, and own_window_transparent settings.
I solved the problem by own_window_type normal
in the file ~/.conky

Traffic monitoring with SNMP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to get bandwidth value of Wan interface in Open-Wrt router (WRT54GL) using
OID: 1.3.6.1.2.1.2.2.1.10.4
But I keep getting value around 4174517174
I was doing some calculations and it does not make any sense:
4174517174 / 8 / 1024 /1024 = 497 MB/s
Does this value contains more info like time or something or my OID is incorrect ?
I have got the answer. Its the whole traffic which has passed trow this interface. To get the bandwidth you need to get the difference between two past values...

Resources