I have directories full of files that contain dates and times in their names in the format YYYYMMDDhhmm. So like, one of the files is named 199407271609 with no file extension.
I have this script searches a given directory and changes all creation dates of the files to match the date in their name:
The script changes the creation dates correctly, but the only problem is, it's ignoring the hours and minutes part and making all the creation times 12:00 AM. What am I missing here? Any help greatly appreciated.
I have an odd problem with my internet connection. I think it's software not hardware, but I'm not even certain of that. My best guess is that it relates to my recent installation of KVpnc.
I can't connect to most websites: no ping, nothing in the browser. But other websites I can connect to... (7 Replies)
Hi,
I wrote a program for Windows environment. It shows a menu to choice some operations to do. Once an operation is done, it cleans the screen with a system("cls") call, and the menu is shown again.
I'd like to just clean half screen, so the program doesn't need to call again the print menu... (5 Replies)
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
HI Guys,
Can you please let me know the procedure to reestablish the SRDF which is half split, as you can see from the below O/P that one of the device is synchronized and other devices are in split mode
Source (R1) View Target (R2) View MODES... (2 Replies)
Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All individual scripts run just fine. My var/mail file only shows it up to the " echo "Loader Stop... (3 Replies)
how to create a half-triangle like this
and that will accept an input from the user, Dimension of the triangle will be based on the users input.
example:
enter the dimension: 5
*****
-****
--***
---**
----*
thankyou (3 Replies)
I have an old p5 570 ibm server that consists of two enclosure and make by FC1847 cable, single 8 processors server.
So, after one part of it, accidentally was turned off, I lost all devices from it.
Now they all in defined mode, for example:
dodo:/# lsdev -Cc processor
proc0 Available 00-00... (8 Replies)
Discussion started by: mcgvaer
8 Replies
LEARN ABOUT CENTOS
dm_zdump
DM_ZDUMP(1) User Contributed Perl Documentation DM_ZDUMP(1)NAME
dm_zdump - timezone dumper
SYNOPSIS
This performs the same operation as the unix 'zdump' command, but using the Date::Manip module.
dm_zdump [-v] [-c YEAR] [ZONE ZONE ...]
DESCRIPTION
This displays the current time in each ZONE named on the command line unless the -v option is given.
-h, --help
Print online help.
-v, --verbose
This displays all critical dates (i.e. the times when a time change occurs due to the timezone description) for each of the timezones
listed (or the local timezone if none are listed).
Each critical date is printed as two lines of output: the last second before the change occurs, and the first second of the new time.
By default, all critical dates from Jan 1, 0001 until the year 20 years in the future are printed, but this can be changed with the -c
option.
-c, --cutoff YEAR
This specifies the cutoff year. All critical dates up to the start of YEAR are given. The GMT time Jan 01, YEAR at 00:00:00 is the
cutoff time.
KNOWN BUGS
None known.
BUGS AND QUESTIONS
Please refer to the Date::Manip::Problems documentation for information on submitting bug reports or questions to the author.
SEE ALSO
Date::Manip::Date
LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Sullivan Beck (sbeck@cpan.org)
perl v5.16.3 2014-06-09 DM_ZDUMP(1)