Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Hello,
i am having a source directory which consist of multiple sub directories and my destination folder is a empty directory.
if try to copy a file source->test->1.txt from source to destination test2 using the commaind.
cp source/test/1.txt desti/
It will copy the 1.txt under desti... (1 Reply)
Hey, this might be a really basic question, but I'm new to Unix scripting.
I'm trying to find a command to replicate a file structure from one location to another & move the actual files contained in the base directories, i.e. I have this structure -
home/temp/test/dir1/ ... (3 Replies)
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Hi All,
I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip.
This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
The below will move all the files in the directory dir to the destination using parallel and create a log, however will not keep them in the directory. I have tried mkdir -p but that does not seem to work or at least I can not seem to get it (as it deletes others files when I use it). What is the... (2 Replies)
We are receiving few zipped files in one location say : apple/oranges/incoming
All .zip files are placed here in incoming folder.
So few of the files are password encrypted.
There are only 10 zipped files, so we are planning to create a script which will pick that zip file from incoming... (1 Reply)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
The below bash executes but nothing is copied. I am trying to cp or mv the matching .pdf to the corresponding folder. There will always be a matching .pdf found but the number of folders may vary. The portion in red is what is used to match the .pdf--- variable $pdf to the folder--- variable... (11 Replies)
Discussion started by: cmccabe
11 Replies
LEARN ABOUT DEBIAN
zirephoto
ZirePhoto(3pm) User Contributed Perl Documentation ZirePhoto(3pm)NAME
Palm::ZirePhoto - Handler for Palm Zire71 Photo thumbnail databases.
SYNOPSIS
use Palm::ZirePhoto;
DESCRIPTION
The Zire71 PDB handler is a helper class for the Palm::PDB package. It parses Zire71 Photo thumbnail databases (and, hopefully, Tungsten
Photo databases). Actual photos are separate databases and must be processed separately.
This database is currently only capable of reading.
AppInfo block
The AppInfo block begins with standard category support. See Palm::StdAppInfo for details.
Records
Records may contain no data fields. This occurs when the record has been marked deleted on the Palm, presumably in order to save space
(Photo has no provision for archiving when deleting and the separate database storage for the actual images would make it pointless
anyways).
$record = $pdb->{records}[N]
$record->{'width'}
$record->{'height'}
$record->{'size'}
The actual JPEG images dimensions and (compressed) file size.
$record->{'thumb'}
The thumbnail is a very small (max size approx 84x84) JPEG format image.
$record->{'name'}
Image name. Appending ".jpg" to this will give the database name of the actual image data.
$record->{'time1'}
$record->{'time2'}
Unix epoch time of when the image was last modified ("time1") and when it was created ("time2").
Photo Databases
Actual photos are stored in separate databases. Each record is preceded by an 8 byte header that describes it a) as a data block (DBLK) and
b) the size of the block. Records are generally 4k, except for the last. To convert a Photo database to a JPEG image, one would do
something like:
use Palm::Raw;
my $pdb = new Palm::PDB;
$pdb->Load( "image.jpg.pdb" );
open F, ">image.jpg";
for( @{$pdb->{records}} ) {
print F substr($_->{'data'}, 8);
}
close F;
Notes are stored at the end of the JPEG image. Use "ParseNote" to get it.
METHODS
Handling Palm photos can be a bit complicated. Some helper methods are exported to make some special cases a bit easier.
ParseNote
my $photo = read_jpeg_file( "image.jpg" );
my $note = Palm::ZirePhoto::ParseNote($photo);
print "Note: $note" if defined $note;
The Palm photo application stores user notes at the end of the JPEG file itself. This method will extract that note and return it. "undef"
is returned if the note is unavailable.
ParseAlbum
my $album = slurp("/DCIM/Unfiled/Album.db");
my @records = Palm::ZirePhoto::ParseAlbum( $album );
print $_->{name},"
" for( @records );
Photos on memory cards are stored in subdirectories of "/DCIM". The meta-data for these images are stored in "Album.db" files under each
category directory. This method will parse out the meta-data into an array of records similar to those returned by "ParseRecord". Thumbnail
information, however, is not available.
SOURCE CONTROL
The source is in Github:
http://github.com/briandfoy/p5-Palm/tree/master
AUTHOR
Alessandro Zummo, "<a.zummo@towertech.it>"
Currently maintained by brian d foy, "<bdfoy@cpan.org>"
SEE ALSO Palm::PDB(3)Palm::StdAppInfo(3)perl v5.10.1 2010-03-07 ZirePhoto(3pm)