Sponsored Content
Top Forums Shell Programming and Scripting Synchronize pictures & resize at the same time Post 302445355 by Joeba on Sunday 15th of August 2010 03:23:30 PM
Old 08-15-2010
thanks for the reply!
but this doens't deal with if source contains directories with subdirectories, correct?
so ideally the script should check what folder the file is in, and recreate that same folder structure in the target ...
Think this is the tricky part Smilie

any ideas on this one?

thanks!
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I send pictures in email?

I know how send a html page through mailx, but how do I show the pictures(gif,jpeg,etc.) in the email? (4 Replies)
Discussion started by: Thomas
4 Replies

2. Programming

curses & window resize issues

I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
Discussion started by: kwaz
0 Replies

3. UNIX for Advanced & Expert Users

Solaris 9: How to set time/Synchronize

Hi, I have 4 solaris 9(32-Bit) Sparc machines on the same subnet. All 4 of them have different times( off by 10-15 mins). I need to synchronize all 4 of them. Please advise what I should do to sync them to the proper time, and with each other. Thanks (3 Replies)
Discussion started by: 0ktalmagik
3 Replies

4. Shell Programming and Scripting

HP-UX & need help with time

I use HP-UX & need help with time. I use a script to create a date stamp: /bin/date "+%m%d%H%M" to get: 12080826. I need a way to use the "touch -t" command to create a file with a timstamp 30 minutes prior to that stamp. (12080756) Can anyone help? (9 Replies)
Discussion started by: obrien2003
9 Replies

5. AIX

Synchronize time on several AIX servers ?

Hi, I want to synchronize time on several AIX servers - I don't want to set very precise time value, but I want all the servers to have same time value. How do I do that ? thanks Vilius (2 Replies)
Discussion started by: vilius
2 Replies

6. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

7. Programming

DATE & TIme

Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ? please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies

8. Shell Programming and Scripting

How to find & auto resize images?

I need a command or mini scripts that can find certain type of images file recursively from the current dir with files of minimum 736 width and resize them by "736 max width, relative height" and replace the source files. I currently have GD installed but can also install Imagemagick if needed, I'm... (5 Replies)
Discussion started by: Frozen77
5 Replies
RECOVERJPEG(1)							   User Commands						    RECOVERJPEG(1)

NAME
recoverjpeg - recover jpeg pictures from a filesystem image SYNOPSIS
recoverjpeg [options] device DESCRIPTION
Recoverjpeg tries to identify jpeg pictures from a filesystem image. To achieve this goal, it scans the filesystem image and looks for a jpeg structure at blocks starting at 512 bytes boundaries. Salvaged jpeg pictures are stored by default under the name imageXXXXX.jpg where XXXXX is a five digit number starting at zero. If there are more than 100,000 recovered pictures, recoverjpeg will start using six figures numbers and more as soon as needed, but the 100,000 first ones will use a five figures number. Options -f and -i can override this behaviour. OPTIONS
-h Display an help message. -b blocksize Set the size of blocks in bytes. On most file systems, setting it to 512 (the default) will work fine as any large file will be stored on 512 bytes boundaries. Setting it to 1 maximize the chances of finding very small files if the filesystems aggregates them (UFS for example) at the expense of a much longer running time. -f formatstring Set the filename format string (printf-style, default: "image%05d.jpg"). It is used with the image index as an integer argument. -i integerindex Set the initial index value for image numbering (default: 0). -m maxsize Maximum size of extract jpeg files. If a file would be larger than that, it is discarded. The default is 6 MiB. -q Be quiet and do not display anything. -r readsize Set the readsize in bytes. By default, this is 128 MiB. Using a large readsize reduces the number of system calls but consumes more memory. The readsize will automatically be adjusted to be a multiple of the system page size. It must be greater than the maxsize parameter. -v Be verbose and describes the process of jpeg identification. By default, if this flag is not used, recoverjpeg will print a progress bar showing how much it has analyzed already and how many jpeg pictures have been recovered. All the sizes may be suffixed by a k, m or g letter to indicate KiB, MiB or GiB. For example, 6m correspond to 6 MiB (6291456 bytes). EXAMPLES
Recover as many pictures as possible from the memory card located in /dev/sdc: recoverjpeg /dev/sdc Recover as many pictures as possible from a crashed ReiserFS file system (which does not necessarily store pictures at block boundaries) in /dev/hdb1: recoverjpeg -b 1 /dev/hdb1 Do the same thing in a memory constrained environment where no more than 16MB of RAM can be used for the operation: recoverjpeg -b 1 -r 16m /dev/hdb1 AUTHOR
Recoverjpeg has been written by Samuel Tardieu <sam@rfc1149.net>. If recoverjpeg saves your day and you liked it, you are welcome to send me the best rescued ones by email (please send only 800x600 ver- sions of the pictures) and authorize me to put them online (indicate which contact information you want me to use for credits). COPYRIGHT
Copyright (c) 2004-2010 Samuel Tardieu <sam@rfc1149.net> This is free software; see the source for copying conditions. There is NO war- ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
recovermov(1), sort-pictures(1) KNOWN BUGS
Recoverjpeg does not include a complete jpeg parser. You may need to use sort-pictures afterwards to identify bogus pictures. Some pictures may be corrupted but have a correct structure; in this case, the image may be garbled. There is no automated way to detect those pictures with a 100% success rate. recoverjpeg January 2010 RECOVERJPEG(1)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy