01-01-2010
spaces
The one thing I can see from your example is that the system call won't work if the files have spaces in the names but File::Copy will. That could easily be fixed but it is something you have to take into account.
Staying within Perl will
probably mean that another process is not forked. The 'system' call always forks another process. That can be an advantage or a disadvantage depending on the behaviour you desire. For instance, if you wanted to copy ten files but didn't wish to wait for completion, the 'cp's could be
forked asynchronously.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi,
- on a solaris box what is the best utility to copy a whole file system from one place to other? - the aim of the operation is to place the contents of
the whole file system to other file system within the discs
cp ? - cpio? - tar?
- what about file systemes containing symbolic links ?... (1 Reply)
Discussion started by: JAKEZ
1 Replies
2. Solaris
Hi, i'm trying to make a system copy from one server to another (solaris 9), they have the same configuration. I've tried to create a flash archive using the flarcreate but the flash file size is 5.06 approx. and the method the flarcreate is using is CPIO and he cannot handle sizes over 4 GB.
Is... (2 Replies)
Discussion started by: pasalagua
2 Replies
3. Shell Programming and Scripting
I am trying to write a script which has to copy the directory structure from my system to another system on the network. But I dont want the files to be copied.
I think I have to start with copying all subdirectories names in a directory to a system on the network.
Here's the case:
Source... (1 Reply)
Discussion started by: firefox211
1 Replies
4. Programming
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<stdlib.h>
int main( int argc,char *argv )
{
char buf;
int sourcefile,destfile,n;
if(argc!=3)
{
write(STDOUT_FILENO,"prgm1 <sourcefile> <destination file>\n",50);
... (6 Replies)
Discussion started by: c_d
6 Replies
5. UNIX for Dummies Questions & Answers
Hi,
my router is my Linux embedded device.
I have system installed on HDD 4GB usb stick, part1 swap, part2 /opt , part3 data.
I need to copy my system to new HDD 8GB usb stick.
What is a way for 4GB > 4GB HDD
and what for 4GB > 8GB
As I remeber, I can copy image of my 4GB HDD usb stick... (7 Replies)
Discussion started by: jack2
7 Replies
6. Shell Programming and Scripting
Hi
Could you please help me on this
I have folder called D:\Data in which we have 20 files coming daily and needed all 20 files to copy into D:\Target ,as i am new to PERL, i did nt know how to use this
I googled sme of the code and done the copy script,it is throwing error like we do... (1 Reply)
Discussion started by: vaas
1 Replies
7. AIX
Dear Guy’s
By using dd command or any strong command, I’d like to copy huge data from file system to another file system
Sours File system: /sfsapp
File system has 250 GB of data
Target File system: /tgtapp
I’d like to copy all these files and directories from /sfsapp to /tgtapp as... (28 Replies)
Discussion started by: Mr.AIX
28 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I have successfully backup & restore (using tar) one of my Debian Lenny Servers.
On the restore server (standby machine), everytime i have to erase the disk & extract the tar backup.
I want to extract the tar on the running restore server on a directory for e.g /systembackup-01,... (11 Replies)
Discussion started by: coolatt
11 Replies
9. Shell Programming and Scripting
Hi
I have a shell script to copy a pattern of files from Linux to Windows Filesystem.
When i execute the below command
cp -av TOUT_05-02-13* Windows/Folder
`TOUT_05-02-13-19:02:37.tar.gz' -> `Windows/Folder/SYSOUT_05-02-13-19:02:37.tar.gz'
cp: cannot create regular file... (5 Replies)
Discussion started by: rakeshkumar
5 Replies
10. Solaris
Hello,
I am creating a new disk using the following command:
dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k
after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB)
ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
10 Replies
LEARN ABOUT DEBIAN
rmadison
RMADISON(1) RMADISON(1)
NAME
rmadison -- Remotely query the Debian archive database about packages
SYNOPSIS
rmadison [OPTIONS] PACKAGE ...
DESCRIPTION
dak ls queries the Debian archive database ("projectb") and displays which package version is registered per architecture/component/suite.
The CGI at http://qa.debian.org/madison.php provides that service without requiring SSH access to ftp-master.debian.org or the mirror on
ries.debian.org. This script, rmadison, is a command line frontend to this CGI.
OPTIONS
-a, --architecture=ARCH
only show info for ARCH(s)
-b, --binary-type=TYPE
only show info for binary TYPE
-c, --component=COMPONENT
only show info for COMPONENT(s)
-g, --greaterorequal
show buildd 'dep-wait pkg >= {highest version}' info
-G, --greaterthan
show buildd 'dep-wait pkg >> {highest version}' info
-h, --help
show this help and exit
-s, --suite=SUITE
only show info for this suite
-S, --source-and-binary
show info for the binary children of source pkgs
-t, --time
show projectb snapshot and reload time (not supported by all archives)
-u, --url=URL[,URL ...]
use URL for the query. Supported shorthands are
debian or qa http://qa.debian.org/madison.php
bpo http://backports.debian.org/cgi-bin/madison.cgi
debug http://debug.debian.net/cgi-bin/madison.cgi
ubuntu http://people.canonical.com/~ubuntu-archive/madison.cgi
udd http://qa.debian.org/cgi-bin/madison.cgi
See the RMADISON_URL_MAP_ variable below for a method to add new shorthands.
--version
show version and exit
--no-conf, --noconf
don't read the devscripts configuration files
ARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g. --architecture=m68k,i386
CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables.
Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The
currently recognised variables are:
RMADISON_URL_MAP_SHORTHAND=URL
Add an entry to the set of shorthand URLs listed above. SHORTHAND should be replaced with the shorthand form to be used to refer to
URL.
Multiple shorthand entries may be specified by using multiple RMADISON_URL_MAP_* variables.
RMADISON_DEFAULT_URL=URL
Set the default URL to use unless overridden by a command line option.
RMADISON_ARCHITECTURE=ARCH
Set the default architecture to use unless overridden by a command line option. To run an unrestricted query when
RMADISON_ARCHITECTURE is set, use --architecture='*'.
NOTES
dak ls also supports -r, --regex to treat PACKAGE as a regex. Since that can easily DoS the database ("-r ."), this option is not supported
by the CGI and rmadison.
dak ls was formerly called madison.
The protocol used by rmadison is fairly simple, the CGI accepts query the parameters a, b, c, g, G, s, S, t, and package. The parameter
text is passed to enable plain-text output.
SEE ALSO
madison-lite(1), dak(1).
AUTHOR
rmadison and http://qa.debian.org/madison.php were written by Christoph Berg <myon@debian.org>. dak was written by James Troup
<james@nocrew.org>, Anthony Towns <ajt@debian.org>, and others.
Debian Utilities 2013-12-23 RMADISON(1)