General :: Run The Same Command(s) On The Many Destination Servers From Source Server?
Jan 4, 2011
I am trying to run the same command(s) on the many destination servers from my source server.source server user "report" ssh keys are added to all destination hosts.
hosts.cfg:
----------
gadikota_dev01
[code]....
View 3 Replies
ADVERTISEMENT
Apr 14, 2011
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies
View Related
Apr 17, 2011
To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?
View 1 Replies
View Related
Mar 9, 2011
I want to know what is a source port and what is a destination port.
View 7 Replies
View Related
May 30, 2011
why do we have to define both Source/Destination AND Direction when building firewall.Isn't direction= source->destination? what would happen if source and destination were swapped?
View 3 Replies
View Related
Jun 3, 2010
I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..
View 1 Replies
View Related
Apr 26, 2011
Which of these (if any) are correct?
cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/
cp -r *.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/
cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* *
Both the source and destination folders are valid. There are several folders in the niftyfiftyparty modules folder that I need in the other one.
View 2 Replies
View Related
Sep 16, 2010
Using iptables is there a way to switch the destination IP to become the new source IP and forward that connection.iptables store the src and dst IP in a variable for a particular connection?
View 2 Replies
View Related
Aug 5, 2010
i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously.
View 3 Replies
View Related
Sep 22, 2010
I have six .iso files of CentOS 5.5 (I believe it is a distro of Linux) in a removable External HDD and I want to combine the six files to an only iso. I searched on the Internet and found a script named mkdvdiso.sh and the syntax of that script is: ./mkdvdiso.sh /source /destination/DVD.iso However, I don't know what I can replace the two parameters "source" and "destination" with. I have tried everything I can but it's useless.
View 11 Replies
View Related
May 20, 2010
My laptop has a dead battery. Even when it's fully charged, if the power cable is pulled out it only lasts for about 4 minutes before it dies. I'm running Ubuntu Lucid Lynx 32-Bit. What I want to do is create some sort of script or program that will immediately set my computer to go into hibernation once it detects that the power cable has gone dead. I'm willing to look into all ways of doing this. I can program in C, but I'm not familiar with the API used to manage Power Management in Linux.
[Code]...
View 5 Replies
View Related
Dec 8, 2009
Where is the source implementation of the free command?
View 2 Replies
View Related
Jun 14, 2010
I have written a set of aliases in a file.When i tried to dot it( "Prompt> . filename" ). It said " Permission denied. "But, when I sourced it ("Prompt> source filename"). It worked perfectly.Linux manual has one entry for both the commands. Then what am I missing ?
View 5 Replies
View Related
May 30, 2010
I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:
commandName ls and get coreutils for example.
View 1 Replies
View Related
Oct 4, 2010
I had written a source code of C++ and complied it with the same name using the following command line.For example: c++ source-code.cpp -o source-code.cpp.Now my source code has been replaced by the executable program.Is there any way to retrieve my source-code.
View 9 Replies
View Related
Dec 1, 2009
Can any body tell me where can i found the source code for echo command. so that i can download it such that it can help me for further studies on echo command
View 8 Replies
View Related
May 6, 2010
I'm trying to get the source code of a web page from linux command line and save it to a file. I googled for it but didn't get any info. I'm not sure if wget can do this.
View 4 Replies
View Related
Mar 9, 2010
Is there any open source, command line, subtitle converter, prefferably for linux?
View 2 Replies
View Related
Jul 17, 2010
Is there a command to know " From where a specific RPM package was downloaded & installed ( The full HTTP/FTP path ) " ? For example, if I had previously installed Firefox from here [URL] is there a specific rpm query, or any other place, from where I can get the full ftp path back.
View 1 Replies
View Related
Feb 23, 2010
I'm running Mandriva 2010.0 as a web server, i had 2 HDD in the erver. i dedicate 1 HDD just for LOGS and system backup (160 GB). i would like to change the log destionation directory from /var/log/httpd (defaults) into /backup/log/httpd how can i do that.? coz i couldn,t find the configuration in the webmin. that log would be useful for webalizer/awffull statistic in several days ahead.
View 3 Replies
View Related
Jul 23, 2011
I currently store my backup files onto 2 HDDs that I have in external USB enclosures, one is 1.5TB and the other is 2TB. They both basically mirror each other, but is done by manually copying files onto one and then the other. My goal is to have a Raid level 5 system and I know that level of Raid is a minimum of 3 disks so I'm wondering what my current options are with Raid level 5 in mind.
I can immediately wipe out one of the two drives I currently have with the second requiring some time to offload data from if it is not possible to proceed with Raid unless I have this second disk free. So my situation is this. Is it possible to do something right now with two disks and then convert to Raid level 5 later once I have a third disk without starting from scratch?
View 3 Replies
View Related
Feb 16, 2010
I'm using rsync for a backup-sript at the moment and want to keep all files. The files are always unique, so I want to rsync without delete any file on the destination.
I've tried with --no-delete and --max-delete=0 but nothing seens to work. Is there even a possibility to do so?
View 2 Replies
View Related
Feb 27, 2010
Before, the "sudo cp -r" command automatically set the permissions to make the directory / files can be accessed by others.
But, after I reinstall Ubuntu 9.10 and apply all the latest updates, "sudo cp -r" command set the files to be accessible by root only.
After I copy the codecs directory to /usr/lib by using the above command, not only I cannot view the files inside, SMPlayer and other player software cannot access the directory.
To fix this, I have to run the chmod command to change the permissions.
Does anyone face this problem? Was it caused by the installation of latest updates?
View 6 Replies
View Related
Jun 8, 2009
I am doing a LVM replicate to another server.
Example: server1.foo.com has / , /boot , swap and few LVM partitions. All are in /dev/sda disk of size 80GB. /dev/sda5 is a LVM partition which has only one vg00 and it has 2 LV's (/var and /usr) and a SAN storage connected to this server which has around 500GB of single partition(a LV partition) called /data and its under vg00 .
Now I have build another server called "server2.foo.com" with same RedHat OS version - RHEL 4 and want to import the same LVM setup at destination. Down time or unmounting the filesystem is not a problem (but am trying to reduce the down time as much as possible). Is there any way that I can take a proper snapshot of whole LVM disk and restore with same setup at destination without losing the data and the lvm file system layout?
View 4 Replies
View Related
Jan 22, 2011
I just got done installing Ubuntu Server 10.04 on a home server. Now what should I do? I was hoping to have 3 computers connected to it so that we can all share files wirelessly if that's possible.Does Ubuntu Server have a GUI or command line only?
View 9 Replies
View Related
Oct 20, 2010
I have a web service that needs to change to destination of rsyslogd on the fly. I have tried this in a bash script and it does not work.
pidrsyslogd='pidof -x rsyslogd'
sudo kill $pidrsyslod
rsyslogd -4 -l $LOGFILEURL
I get the error that rsyslogd is "already running"; as soon as I kill it in the second line it restarts.
View 2 Replies
View Related
Mar 2, 2009
I am trying to get the MX record using dig command supplying IPv6 address of host. but i am getting connection timed out .
while with IPv4 address and host-name its working fine.
View 1 Replies
View Related
Jun 8, 2010
i have a problem with my internet connection in ubuntu 8.04 server edition. if i ping to: [URL]... i get: Destination Host Unreachable but when i ping to my gateway or other pc's in my network no problems occur.
View 9 Replies
View Related
Apr 18, 2010
I'm getting ready to deploy a Ubuntu server in a remote location. I am deathly afraid of something going horribly wrong though, so what I'd like to do is be able to somehow image the system when it's working, and be able to restore that remotely via SSH if things go to hell. My first thoughts were that I could partition the hard drive, and install two separate instances of Ubuntu. One would be the server in it's working state, and the other one would be a separate instance of Ubuntu that I could boot into to restore an image (if that's possible).
1. If I had two separate instances of Ubuntu on two separate partitions, and I was currently booted into one of them, would it be possible to tell the Ubuntu server to reboot and boot into the other instance of Ubuntu on the other partition over SSH? (SSH is the only form of access I will have to the server)
2. Is there a better way to remotely restore a server than what I outlined above?
3. Also, I've used the dd command to make backups before, but it copies an entire hard drive byte for byte. Is there an argument I can tag on, or another command to use altogether that will only copy the bits that are being used?
View 5 Replies
View Related
Sep 12, 2010
On Ubuntu Desktop editions, there is a GUI application which allows easily changing to a different server. It can even find out how one is the fastest update server.Is there a corresponding command line tool available to do this? Because I'm using the Server edition without GUI. I hate to manually edit /etc/apt/source.list.
View 4 Replies
View Related