10 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Hello,
I am planning to build a NAS server next week and i was wondering which OS to use.
As i see the two most common are FreeNAS and Ubuntu server + samba.
What do you think?Do you hava any experience on that?Any other idea?
Thanks! (5 Replies)
Discussion started by: @dagio
5 Replies
2. Shell Programming and Scripting
Hi All,
I am quite new to UNIX Scripting and want to learn it from scratch, a book which gives lot of examples, how to troubleshoot, how to run etc.. would be great.
Need help from all the experts out there to suggest one book to start with.
Regards,
Vikas (4 Replies)
Discussion started by: vikas_chengdu
4 Replies
3. Web Development
Hello everyone,
I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself.
I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help!
First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am fresher in Unix and hence need your help in understanding the basic concepts in Server Building.
Please guide me with the next steps in building our own server after Assembling hardware and installing OS. (1 Reply)
Discussion started by: laxmi Sharma
1 Replies
5. Web Development
I have been given the task of building a video server that has basic video editing capabilities through a web interface. Something like what jaycut.com does. Right now we use FFmpeg on one of our servers to do command line editing and conversion but we want to make it super simple so that normal... (0 Replies)
Discussion started by: mcraul
0 Replies
6. Solaris
Hi Guys,
Marry X-MAX in advance :)
I would like to build a new server using ufsdump/ufsrestore. Both the servers are identical hardware and model. I am using Solaris 10 X86 O/S.
I am having ufsdump "mydump.rootdump.gz" in a Central NFS server.
What I did:-
I took backup of root... (3 Replies)
Discussion started by: SanjayLinux
3 Replies
7. UNIX for Dummies Questions & Answers
Hi! Any knows if Unix (from IBM, Sun, HP, etc) is picky on hardwares? I mean, installing Unix (not Linux) on a custom build system?
Thanks. (2 Replies)
Discussion started by: genesisX
2 Replies
8. UNIX for Advanced & Expert Users
hi all,
i'm trying to write a unix system from scratch (not re-writing the kernel)
does anyone have information about that? tips and stuff...?i would appreciate every help,
thnks :) (9 Replies)
Discussion started by: elzalem
9 Replies
9. UNIX for Advanced & Expert Users
Hello.
I am asked to build a new UNIX Server for Development environment before we could ask the high level experts to build production environment. Could you please let me know what all must I have to know and the steps inorder to build ux server?
Thank you! (2 Replies)
Discussion started by: panchpan
2 Replies
10. IP Networking
hi,
i am a pretty good linux user..but i have no idea on building a server witha domain and everthing. please help! (5 Replies)
Discussion started by: hamza11050
5 Replies
Directory::Scratch::Structured(3pm) User Contributed Perl Documentation Directory::Scratch::Structured(3pm)
NAME
Directory::Scratch::Structured - creates temporary files and directories from a structured description
SYNOPSIS
my %tree_structure =
(
dir_1 =>
{
subdir_1 =>{},
file_1 =>[],
file_a => [],
},
dir_2 =>
{
subdir_2 =>
{
file_22 =>[],
file_2a =>[],
},
file_2 =>[],
file_a =>['12345'],
file_b =>[],
},
file_0 => [] ,
) ;
use Directory::Scratch::Structured qw(create_structured_tree) ;
my $temporary_directory = create_structured_tree(%tree_structure) ;
or
use Directory::Scratch ;
use Directory::Scratch::Structured qw(piggyback_directory_scratch) ;
my $temporary_directory = Directory::Scratch->new;
$temporary_directory->create_structured_tree(%tree_structure) ;
DESCRIPTION
This module adds a create_structured_tree subroutine to the Directory::Scratch.
DOCUMENTATION
I needed a subroutine to create a bunch of temporary directories and files while running tests. I used the excellent Directory::Scratch to
implement such a functionality. I proposed the subroutine to the Directory::Scratch author but he preferred to implement a subroutine
using an unstructured input data based on the fact that Directory::Scratch didn't use structured data. This is, IMHO, flawed design, though
it may require slightly less typing.
I proposed a hybrid solution to reduce the amount of subroutines and integrate the subroutine using structured input into
Directory::Scratch but we didn't reach an agreement on the API. Instead I decided that I would piggyback on Directory::Scratch.
You can access create_structured_tree through a subroutine or a method through a Directory::Scratch object.
Whichever interface you choose, the argument to the create_structured_tree consists of tuples (hash entries). The key represents the name
of the object to create in the directory.
If the value is of type:
ARRAY
A file will be created, it's contents are the contents of the array (See Directory::Scratch)
HASH
A directory will be created. the element of the hash will also be , recursively, created
OTHER
The subroutine will croak.
SUBROUTINES
/METHODS
create_structured_tree
use Directory::Scratch::Structured qw(create_structured_tree) ;
my $temporary_directory = create_structured_tree(%tree_structure) ;
my $base = $temporary_directory->base() ;
Returns a default Directory::Scratch object.
directory_scratch_create_structured_tree
Adds create_structured_tree to Directory::Scratch when you Load Directory::Scratch::Structured with the piggyback_directory_scratch
option.
use Directory::Scratch ;
use Directory::Scratch::Structured qw(piggyback_directory_scratch) ;
my $temporary_directory = Directory::Scratch->new;
$temporary_directory->create_structured_tree(%tree_structure) ;
_create_structured_tree
Used internally by both interfaces
piggyback
Used internally to piggyback Directory::Scratch.
BUGS AND LIMITATIONS
None so far.
AUTHOR
Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nadim@khemir.net
LICENSE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Directory::Scratch::Structured
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Directory-Scratch-Structured>
o RT: CPAN's request tracker
Please report any bugs or feature requests to L <bug-directory-scratch-structured@rt.cpan.org>.
We will be notified, and then you'll automatically be notified of progress on your bug as we make changes.
o Search CPAN
<http://search.cpan.org/dist/Directory-Scratch-Structured>
SEE ALSO
Directory::Scratch
perl v5.10.1 2010-03-22 Directory::Scratch::Structured(3pm)