General :: Rotate Image (Script) Without Changing "modified" Date?

Nov 18, 2010

I am actually modifying someone else's script and The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code:
#!/bin/bash
while [[ -n "$1" ]]; do

[code]....

View 2 Replies


ADVERTISEMENT

Ubuntu :: Rotate Image (Script) Without Changing "modified" Date?

Nov 19, 2010

I am actually modifying someone else's script and I need some help. The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code:
#!/bin/bash
while [[ -n "$1" ]]; do

[code]....

View 3 Replies View Related

Programming :: Rotate Image (Script) Without Changing "modified" Date?

Nov 18, 2010

I am actually modifying someone else's script and I need some help. The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code: #!/bin/bash
while [[ -n "$1" ]]; do
#if a file and not a dir
if [[ -f "$1" ]]; then

#the images that I copy from my cell phone don't have exif headers #so I am using the -mkexif switch first to match the exif information #to the "created date" in the .jpg file. jhead -mkexif "$1"

[Code]...

It's important to note that the original script, before I made any edits, did not have this quirk whereas I needed to "touch" the file to get it to orient itself correctly. The 'original' script is in black; my additions are in blue.

View 4 Replies View Related

General :: Find And Sort Results By Date Modified

Jun 7, 2011

so I was wondering how I could do a simple find which would order the results by most recently modified. Here is the current fine I am using. (I am doing a shell escape in php, so that is the reasoning for the variables. find '$dir' -name '$str'* -print | head -10

How could I have this order the search by most recently modified. (Note I do not want it to sort 'after' the search, but rather find the results based on what was most recently modified)

View 4 Replies View Related

General :: Find All Files Modified In Date Range

Apr 30, 2010

I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.

View 2 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 Replies View Related

General :: Write Shell Script To Check The Modified Date Of A File ?

Jun 17, 2011

I have two linux servers, they are backup together.

1. Server 1 have 3 files with name: file1, file2, file3 in the path: /etc/sysconfig/network-script/.

2. Server 2 have 3 files with name and path are the same as server 1.

- How to make a script to copy 3 files at server1 to overwrite on server2. But before overwrite, this script will check and compare the last modified date of these 3 files(on server1 and server2). if the modified date of file1, file2 or file3 on server1 is newer than 3 files on server2 then overwrite process will do, if not, will do nothing.

- see my script as below: it works find now but just overwrite. not check last modified date.

View 1 Replies View Related

General :: How To Rotate Image On GIMP?

May 8, 2011

Could someone tell me how to rotate an image on GIMP? Now You can rotate it 90 180 etc but I would like to rotate the image to level the shot.

View 6 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

Ubuntu :: Backup NTFS Files Modified After A Certain Date?

May 14, 2010

I clone my entire notebook hdd once a month to a USB drive with an identical disk once a month using dd. I would like to find a way to automatically or manually do incremental backups at shorter intervals.

The first problem is that my incremental backup drive is not the same as my full backup drive (which is my clone). Is there some way to backup or copy all files on a document partition modified after a certain date?

The second problem is that my document partition is NTFS-3G. I guess this could be done pretty easily using "dump" if I stored my docs on ext. [I don't because I want to make sure that my docs are accessible from any machine (say in an Internet cafe) should my MacBook die and I need to rip out the hard drive and run to do my homework on another system; that is why I keep my docs on my Vista partition].

View 1 Replies View Related

Programming :: Script To Find Out Modified Date For Particular File

Jul 9, 2010

I am new to Scripting. I am trying to find out particular file is modified in last one hour or not in script and then if that file is modified in last one hour i need to copy that file to another directory.Can any one please provide me how to check the file is modified in one hour or not?

View 3 Replies View Related

Ubuntu :: Sequentially Number Files Based On Date Modified - Rename Cli

Nov 8, 2010

Sequentially number files based on date modified (rename cli)

I'm almost done a larger script which takes all the pictures in a folder, converts it to video, and emails it to me. Everything worked fine until I realized the picture filenames weren't always starting at 1, then ffmpeg chokes.

I have a bunch of files in a folder which I need to rename to:

I don't want to install any additional packages and I'd like this to run in a single command if possible.

If not possible, then a bash script would work too.

View 3 Replies View Related

Ubuntu :: 10.04 - 'Date Modified' Changed On File Copy To NTFS Partition?

Jul 6, 2011

Prior to making a fresh install of 10.04, I made a back up of all my documents by copying them to a NTFS partition. I did this my selecting files in File Browser, then right clicking and selecting the Copy command.

When I came to move the files back after the fresh install, I was mortified to find that all the file modification dates had changed to the date I copied them! I've lost all the original file dates, which was the principal way I sorted my files. I guess there's no way of getting it back? It seems that Linux does not store File Creation dates either so I'm stuffed.

View 3 Replies View Related

General :: Changing The Date IST To GMT?

Jun 19, 2011

Somehow during a recent ubuntu install I managed to set my clock to Indian Standard Time instead of Greenwich Mean Time. Now I'm having problems acessing some websites and I think it's because the certificates appear to be off date.

View 2 Replies View Related

Fedora :: Nautilus Viewer - Disable Image Auto Rotate?

Nov 5, 2009

I've noticed in Gnome pretty much all applications auto-rotate images when viewing, but leave the original image data intact. This may sound silly, but when I want to post pictures on, for instance, Facebook they upload as the picture was originally taken. So, if I took a picture with the camera flipped sideways it appears upright in Nautilus and the two image viewers I have installed, but when I upload the picture it appears to be flipped on its side. Does anyone know how to disable the auto-rotate when viewing feature?

View 2 Replies View Related

OpenSUSE :: Digikam 1.2 Suse 11.3 New Install Rotate Image Fails?

Jul 23, 2010

Digikam will not rotate images. Worked fine in all previous versions. Tried installing 1.3 from this repo

Index of /repositories/KDE:/UpdatedApps/openSUSE_11.3
per this thread
opensuse - exif and gwenview
but 1.3 failed to launch.
De-installed 1.3 and re-installed 1.2 from release repos.

From reading the above thread perhaps a patch will soon be released?

View 4 Replies View Related

General :: Change A Files Modification Date "only" Without Changing The Time?

Oct 29, 2010

I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.

View 3 Replies View Related

Ubuntu :: Changing Date And Time

Apr 15, 2010

I installed my linux os in vmware.I need to set time of virtual machine to later time( 2005 ).I have an application whose license expires at 2006 so I have to do this in order for it to work .but when I change it it comes back to the current time ,so what is the solution for this .

View 2 Replies View Related

Ubuntu :: Changing The Date Format?

Oct 12, 2010

Is it possible to change the date format in Ubuntu 10.04 from the American mm/dd/yyyy to the British format of dd/mm/yyyy? I have looked at the Time/Date settings but cannot see any way of changing the date format

View 4 Replies View Related

Fedora :: Rotate The Pen When Rotate The Screen?

Sep 7, 2009

how can I rotate the pen when I rotate the screen, and I would like to share this knowledge to other people who may have the same problem I had.

I have a tablet fujitsu-siemens t5010 with installed the wacum packages by default, and the pen was working, but couldn't rotate with xsetwacom command.

In Fedora 10, most guides refer to the wacom device as "stylus" which doesn't work on Fedora 11. I run command " $ xinput list " and I found the line

"PnP Device (FUJ02e5) eraser"id=3[XExtensionKeyboard]

and some lines before there is:

"PnP Device (FUJ02e5)"id=2[XExtensionKeyboard]
^^^^^^ this is the name of the device xsetwacom command needs! ^^^^^^^

I wrote first the line with the eraser cause I suppose that even someone has different wacom model, the eraser will be easy to find by grep command ( $ xinput list | grep -i eraser ), and common in most configures.

now , the edited script I use becomes like this:

#!/bin/sh
if [ $1 == 'normal' ]
then
xrandr -o normal
xsetwacom set "PnP Device (FUJ02e5)" rotate 0

[Code].....

It would be awesome if it chat could happened automatically , simply by rotating the screen, like it happens on Vista. I'll try to find out any solution and update this post if I make it !

View 1 Replies View Related

Programming :: Ls -R Without Changing Access Time/date?

Aug 31, 2010

I am using cygwin in order to test a bash script that uses the ls -R command. When I use this, the access date of the subfolders are changed, and I need them to remain what they were before the command was run. I don't have access to a legitimate Linux system, so I'm not sure if this is the fault of cygwin or the ls command. The script is being used to find the last access date of all files underneath several subfolders and then return the latest date found in each subfolder as the last access date for that subfolder. For some reason, some of these folders have files in them that are newer than the folder's last access date, so the script is meant to give us a list of the true last access date for these folders.

View 5 Replies View Related

Ubuntu :: Image Viewers That Can Sort By Modification Date?

Sep 15, 2010

I like ordering my images my date modified, but Eye of GNOME only lets you view them by alphabetical order.

Important features for me are: Going through items with the arrow keys. Zooming in and out with the mouse wheel. Being able to sort by modification date, type, or name. Being able to right click and open with either another window of the same viewer, or with another viewer. Having a simple interface

So far, I've tried:

Eye of GNOME - I love how simple it is, and if it wasn't for this sorting problem I'd keep using it. Well, that and the fact that you can't right click and open an image in a separate Eye of GNOME window while continuing to scroll images in the current window.

gThumb - Damn. So close to being a winner. Can't pass images with the arrow keys or zoom in and out with the mouse wheel, but I can sort by modification date, it's simple, and can open another window of the same viewer. But those first two points are also important for me.

Fspot - A little too cluttered when opening a single image. I don't really need to see a top panel with the other images, even if it's nice. I can go through images with the arrow keys, and zoom in and out, but no sorting by modification date.

Shotwell - Shotwell's viewer is pretty fast and simple, however it has lots of flaws for me: can't sort by modification date, can't zoom in and out with mouse wheel, can't open an image in another window while viewing it. At least it's simple and I can navigate with the arrow keys.

View 4 Replies View Related

Ubuntu :: Image Viewer Sort By Exif Date Taken

Jan 31, 2011

I've tried what feels like at least a dozen different image viewers and I'm still hunting for one that handles viewing by date taken. The trick is that I'd like to just click the jpeg as they come off the camera and then browse through all the photos in the order taken... without having to load them into a photo management application, sort them in their, then start viewing from there. Too many extra steps for too many pictures when you're looking at a collection that is already organized (using the file system, i.e., nested directories) back to 2000. I need (ideally) a viewer where I click the jpeg, then go next next next through them in the order in which they were taken. Does anyone know if this sort of thing exists?

View 6 Replies View Related

Software :: OS Image Installs With Future Date Timestamp

Jun 23, 2011

I am trying to install Suse linux 10.3 image on to an HP blade via HP CMU. The node gets imaged successfully, but the certain files/directories have a future date timestamped to it. While the server date is correct.

host:/> date
Thu Jun 23 20:49:29 EST 2011
host:/> ls -ltr |grep Jul
drwxr-xr-x 23 root root 4096 Jul 4 2011 root
drwxr-xr-x 10 root root 4096 Jul 4 2011 opt
drwxr-xr-x 2 root root 4096 Jul 4 2011 bin

View 2 Replies View Related

General :: Use Date With Touch To Create New File With Date Based Name?

Mar 12, 2010

I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name

View 5 Replies View Related

General :: Julian Date Converter To Gregorian Date

Apr 22, 2010

Anyone have a ksh solution to convert julian date to gregorian date?

View 6 Replies View Related

Fedora :: Changing 14 Splash Image?

Oct 31, 2010

For those who wish to change the default login splash background in fedora 14, the offending graphics are to be found in /usr/share/backgrounds/laughlin/default.

Step 1 is to add your preferred ping image alongside the laughlin.png in whichever directory your monitor uses. I am apparently "normalish" so I put my background there. 1280x1024 RGB.

Step 2 - edit the "laughlin.xml" file in the "default" directory, replacing "laughlin.png" with the name of the file you added above.

To get the proper dimensions for an image, you can load laughlin.png into the GIMP and read Image/Properties. While there, you could erase the contents of the image and replace with your own, similar to rinsing out your mouth. Then spit.

If you use a graphic from outside fedora, don't forget to run restorecon on the file, or else SELinux won't allow gdm to display it.

View 2 Replies View Related

Ubuntu :: Changing The Image On The Frontpage?

Aug 19, 2010

what the code was for changing the image on the frontpage of the Ubuntu website as it does. I'd like to incorporate an effect like that into my own site.

View 4 Replies View Related

General :: How To Rotate Auth.log

Mar 2, 2010

I have a problem with the logrotate of auth.log, it is not working. I tried using 'kill -HUP `cat /var/run/sshd.pid`'. This restarts sshd but does not create a new auth.log. Also tried "/etc/etc/init.d/ssh restart" and "/etc/init.d/ssh reload"

View 3 Replies View Related

Debian :: Methods For Changing The GRUB-PC Background Image?

Mar 26, 2011

After much searching and trying of more complicated methods for changing the GRUB-PC background image, i found method that seems to work. The simplest one! I installed grub2-splashimages, which created a new folder in /usr/share/images, called grub. From there it appears to be as simple as adding the image of your choice, then adding "GRUB_BACKGROUND=/usr/share/images/grub/your_image" to "/etc/default/grub" file, the running "update-grub", of course.

Only problem is it doesnt work for the image i really want. So my question: What qualities should an image have if it is to be successfully used as a GRUB-PC (GRUB 2?) background? I have read that you do not need to resize the image anymore, indeed i tried resizing it to match the size a default image form the "/usr/share/images/grub" folder , and saving it with the extension .tga in Gimp and it did not work. The image i want to use is quite large, it is also black and white/grey-scale and in the .png format.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved