9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location
I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. UNIX for Advanced & Expert Users
I have an open source tool I am working on. As of right now, version 1 is complete but it's a set of programs in a directory. What I would like to do is create a flexible installer or package that puts things in the appropriate directories (/usr/bin ? ) or perhaps the user's personal bin directory... (7 Replies)
Discussion started by: tinypig
7 Replies
3. Emergency UNIX and Linux Support
Hello,
i have installed a package by using the command
sudo rpm -i filepackage.rpm
package filepackage is already installed
when i try to remove it, i get an error saying "is not installed":
sudo rpm -e filepackage.rpm
error: package filepackage is not installed
How can... (4 Replies)
Discussion started by: g_p
4 Replies
4. UNIX for Dummies Questions & Answers
Hello,
i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm"
in /usr/local/ directory.
I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't.
I did:
1st try: Didn't work
sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies
5. Linux
Dear all,
I would like to install a new version of package without remove old version on Centos and vice versa.
Please give me advice!
thanks much, (2 Replies)
Discussion started by: all4cfa
2 Replies
6. UNIX for Advanced & Expert Users
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies
7. AIX
Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root"
I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies
8. Solaris
Hi,
I am new to solaris. As I am assigned to a new task to develop a installer for an application on solaris10 machine, I need to prepare the design document for the installer. ( I came to know that in solaris all the instllables will be considered as packages and and are not like .exe's).
So... (0 Replies)
Discussion started by: raghu.amilineni
0 Replies
9. Linux
have following package installed
rpm -qa |grep ADMIN
It will give the following package installed:
ADMIN-4.0.0.1
Now I will upgrade the ADMIN package using the following command.
rpm --upgrade ADMIN-4.1.0.1
It will upgrade the ADMIN packagge to ADMIN-4.1.0.1
Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies
RoPkg::Rsync::ConfFile(3pm) User Contributed Perl Documentation RoPkg::Rsync::ConfFile(3pm)
NAME
RoPkg::Rsync::ConfFile
DESCRIPTION
RoPkg::Rsync::ConfFile is a class used to manipulate rsync configuration files. Is capable to maintaine the order of the modules, and even
keep your comments and empty lines intact.
SYNOPSIS
#!/usr/bin/perl
use warnings;
use strict;
sub main {
my $cf = new RoPkg::Rsync::ConfFile(filename => '/etc/rsyncd.conf');
$cf->Write('/tmp/new_rsyncd.conf');
return 0;
}
main();
METHODS
All methods, throw the OutsideClass exception, if you use them as class methods. Besides OutsideClass the methods are throwing other
exceptions as well. Refer to each method documentation for more information.
new(%hash)
The class constructor. Accepts a hash as parameter. At this moment only one parameter can be specified inside the hash: filename . If this
parameter is present, the file specified is parsed and loaded into the object.
AddParam($pname, $pvalue)
Add a new global parameter named $pname with value $value.
AddComment($pval)
Add a new global comment with value $pval
AddBlank($bval)
Add a new global blank line with value $bval
AddNode($node)
Adds a new RoPkg::Rsync::Node object to the current object. Before the node is added, the nodes list is checked for duplicates of the
object. If a duplicate is found, the method does nothing.
Exceptions:
If $node is not a instance of RoPkg::Rsync::Node, Param::Wrong exception is raised.
DelNode($node_name)
Removes a node from the nodes list. The nodes are searched by their names. Returns -1 if the node was not found, the new number of nodes
otherwise.
HasNode($node_name)
Returns 1 if the node with name $node_name was found in the nodes list, 0 otherwise.
Clean()
Clean the object. Removes all information (the nodes list, statistics, etc). Always returns 1.
Parse($filename)
Parse the configuration file $filename and returns the number of nodes. If $filename is not defined Param::Missing exception is raised. If
the path does not point to a existing file, File::NotFound exception is raised. If the file could not be opened, File::Open exception is
raised.
Write($path)
Write the configuration into the file specified by path $path.
ToString()
Returns the string representation of the configuration file.
PREREQUISITES
perl 5.008 (or later) is required. Besides perl, you must have the following:
*) RoPkg::Exceptions
*) Scalar::Util
*) English
SEE ALSO
RoPkg::Rsync::Atom RoPkg::Rsync::ConfFile RoPkg::Exceptions
AUTHOR
Subredu Manuel <diablo@iasi.roedu.net>
LICENSE
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the
same terms as Perl itself. The LICENSE file contains the full text of the license.
perl v5.8.8 2006-06-09 RoPkg::Rsync::ConfFile(3pm)