General :: Clone Standard Output To /dev/tty0?
Jan 10, 2011
I'm working on a SBC9261 board with touchscreen, running Linux 2.6.24./dev/ttyS0 is the standard output and /dev/tty0 is the console on the touchscreen.What I would like to do is to clone the standard output to the touchscreen, so the console would be displayed twice.
It would be like :
Code:
~ $ ./whatEverScript > /dev/tty0
but the output would also appear on /dev/ttyS0.
View 2 Replies
ADVERTISEMENT
Feb 23, 2011
Is there already a program that reads multiple pipes or file descriptors and writes to the standard output (not splitting lines).Like cat, but reading all files simultaneously and preserving lines.It is needed to avoid coding of select/epoll loops or using multithreading in simple programs. Like "select loop for bash".
View 1 Replies
View Related
Mar 26, 2010
I'm trying to pull out sections from a bunch of files. For one file, I use:
Code:
sed '/string1/,/string2/ !d' <filename.ext >newfilename.ext
to pull out everything between two strings in the original file and put them in a new file.
[code]....
View 3 Replies
View Related
Mar 22, 2009
I would like to get the output from 'yum list installed' from a standard CentOS 5.1 32bit installation on a Intel desktop PC. I would like to do a diff with my 'yum list installed' to figure out exactly what my company customized. I know the docs here have the list of added, deleted and updated packages going from 5.0 to 5.1, but is there a complete 'yum list installed' list somewhere?
View 1 Replies
View Related
Aug 6, 2011
have recently installed CentOS 5.6 Final on TWO DIFFERENT desktop PC's, and, on EITHER ONE, I can not get any sound output when using KMid to play a "standard .mid file (the file I am using to experiment with is "Canyon.mid", from the Windoze Media directory, a fairly standard midi audio file, I should think?!). I have normal audio output on both of these machines (.mp3 files, system sounds, etc.), so the specific sound cards are NOT the issue, here!I am thinking I must be missing something, as both of these PC's are completely different CPU types, etc. as well. The only significant similiarity in the two machines is the complete lack of MIDI audio output!And, yea, the soundcards are BOTH MPU-401 compatible, and they both have irq's assigned to this port (or, maybe just one has an irq assigned, I will have to double check...).
View 2 Replies
View Related
Mar 16, 2011
I am working on telnet session and excuting commands. I am able to redirect or store expect output to log file but now i want to store in excel file like ispreadsheet showing details of commands and its responses
View 2 Replies
View Related
Jul 22, 2010
I'm following the "The Perfect Server - Fedora12 x86_64 [ISPConfig 3]" instructions and I am encountering an error when trying to build the rpm for courier-imap (from page 4 of the HOWTO).
The command I run is:
Code:
rpmbuild -ta courier-imap-4.6.0.tar.bz2
The error is below:
Code:
INFO: LOGIN, user=confmdtest, ip=[127.0.0.1], port=[0], protocol=SMAP1
INFO: LOGOUT, user=confmdtest, ip=[127.0.0.1], headers=0, body=0, rcvd=26, sent=610, time=0
sort: fflush failed: standard output: Broken pipe
[code]....
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.85697 (%build)
View 3 Replies
View Related
Jan 26, 2010
After a recent kernel update, I no longer get a login prompt on the first tty after booting. I can get to one in the second tty, and on the first one after hitting Ctrl+Alt+F1 to go back.
View 4 Replies
View Related
Nov 11, 2010
We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??
View 2 Replies
View Related
Sep 10, 2010
A linux cvs server is of 250 GB, I have to replace all data to a new 500 GB hdd with intact of data. How will I do that?
View 11 Replies
View Related
Jan 16, 2011
I Have a Red hat 9 Installed in our Site With 5 Partitions Which work's as a Server for 3 clients .I wanted to clone the entire H.D.D of the system to a new one, So then if i have a problem i can restore it back.For Example I use Nortron Ghost for Windows Systems( but Without Portions)
View 11 Replies
View Related
Apr 7, 2010
I'd like to be able to clone a tagged module, but have not succeeded with this attempt:
Code:
Does anyone know if it is possible to clone/copy tags like this at all? Or must I find another way of doing this?
View 1 Replies
View Related
Jun 28, 2010
I want to clone a linux bridge repository. i'm behind a proxy server.
The command :
gives the following error
I've done
1 - sudo apt-get install socket
2 - in my home directory, a shell script called "proxy-cmd.sh" was created containing #! /bin/bash (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket git://MYPROXY 3128 (read a; read a; cat )
3 - chmod +x proxy-cmd.sh
4 - export GIT_PROXY_COMMAND=<PATH TO MY SCRIPT>/proxy-cmd.sh
Still not getting.
View 8 Replies
View Related
Jan 8, 2011
I'm thinking about cloning a system without having physical access to its HDD. Is it possible to simply copy the contents of the filesystem (using ssh/scp) to a freshly formatted HDD (maintaining the source fs-type and -geometry)?
View 14 Replies
View Related
Jun 19, 2010
I have a computer-based device used in my Ophthalmology office that uses a Compact Flash card as its primary hard drive. This device, and the CF card, are Linux based, and so the card has Linux partitions on it. I need to be able to clone this CF card, using a Windows computer, onto another CF card, to replace one that has failed in one of these devices. Neither Windows XP nor Vista is able to do anything with it.
I use Casper to clone Windows hard drives and partitions which are FAT32, NTFS, etc., but it does not recognize or work with Linux partitions. I need a simple, hopefully free or inexpensive, program that I can install on a Windows XP or Vista computer, which can clone the good Linux based CF card (which would be connected via a USB Reader, or a built-in Media reader) onto a brand-new unformatted CF card that I would buy, and similarly connected.
View 11 Replies
View Related
Feb 20, 2011
Linux (any distro) HowTo: Clone disks from the command line with dd [URL]
View 4 Replies
View Related
Jul 10, 2010
I need to clone a 160GB hard drive with Linux Mint 9 (not more than 10GB used) to a 30GB SSD that is partitioned carefully (aligned to cylinder boundaries) and is currently running Ubuntu (which I wish to overwrite with Linux Mint 9). The SSD has a /boot partition, / and swap. The source (160 GB) does not have a separate boot partition. Can anyone help me fill in the steps below? /dev/sdc will be the source (160GB) and /dev/sda is the target (with partitions 1,2 and swap on 5).
make a copy of /etc/fstab from the target drive before proceeding. Ready the target partitions. Can I reuse the existing destination partitions on the SSD? Ready the filesystems on each of the target partitions. /boot is ext2, / is ext4 and swap is already set up too. As I said, all contain data (Ubuntu) that I wish to overwrite. So what steps are needed here? Do I need to erase anything (files, etc.) before the copy/clone? next, use dd to copy MBR (right?) And exclude partition table:
Code:
dd if=/dev/sdc1 of=/dev/sda1 count=1 bs=446
Mount the source and destination drives:
Code:
mount -t ext4 /dev/sdc1 /mnt/source
mount -t ext2 /dev/sda1 /mnt/boot_target
mount -t ext4 /dev/sda2 /mnt/root_target
I suppose I can leave the swap partition on the target untouched. Copy the files from the source partition to the destination
Code:
cp -a /mnt/source/boot /mnt/boot_target
cp -a /mnt/source/ /mnt/root_target
then I assume I go to /mnt/root_target and delete the /boot directory, right? Change /etc/fstab to reflect the new partitions. I mount by label. Will my partition labels be intact after this? Do I have to make any changes to GRUB? Anything else?
View 14 Replies
View Related
Jan 15, 2010
I just finish setting Fedora 10 system including all the config that I like. I back up the image by using dd command.
Code:
dd if=/dev/sda of=~/disk1.img
Now, I already have an image. how do I clone this image to second unit by using PXE boot server? I already have PXE boot server and it works since I installed Fedora from network (PXE boot).
View 3 Replies
View Related
May 19, 2010
I'm working on building a pre-patched image of Linux and Windows. Windows I used sysprep and worked out pretty well but not sure what is the steps for Linux? I am planning to use CentOS and Ubuntu, is there a command or script that will recheck the MAC address and prompt for new machine name?
View 2 Replies
View Related
May 6, 2010
Is there a good way from the shell to copy/clone a usb stick that have several partitions?
View 5 Replies
View Related
Feb 25, 2011
I am trying to clone a HDD which has Windows Vista installed. There are two patitions in in:
9.3GB EISA Configuration
65GB NTFS (the C: drive as windows calls it)
I am going to clone the entire hard disk with clonezilla, I am not sure what the EISA partition is and if it can be cloned(then restored) using clonezilla. I did google it, its probably some kind of a recovery partition of some sort.
View 14 Replies
View Related
Apr 12, 2011
I'm wondering if it's POSIX + ASCII or something else is mixed in?
View 1 Replies
View Related
Aug 9, 2011
I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.
I'm looking for something like:
wget -o stout http://whatever.com/page.php > /dev/null
View 4 Replies
View Related
Feb 23, 2011
I ran into an issue that was written up here on LQ and/or on other sites, the one dealing with an error similar to the following one: error trying to exec 'cc1plus': execvp: No such file or directoryThe solution seems is to make g++ and gcc versions consistent. I've since remedied that, but am slightly confused with my findings and concerned with my solution.
When I first looked in /usr/bin for all references to g++ and gcc, I saw that there were two version of gcc and one version of g++:
(Note the "??? ?? ????" as date for gcc. I've since made some changes, but this was essentially the set of gcc and g++ files that existed before I started.)
I'm told that the system I'm using is an "out of the box" installation, i.e. no modifications. As installed, gcc is the newer version and does not correspond to g++34:
Confusion and concern: When I use makefiles from software I've adopted, I run into the cc1plus problem eluded to above. The cc1plus error occurred because the makefiles expected there to be a command named "g++," so I created a symbolic link, pointing /usr/bin/g++ -> /usr/bin/g++34. And in doing so, g++ was not consistent with gcc. I've since fixed that, i.e. copied the gcc34 version to gcc and my software builds fine.
My question are:
1. Will copying the gcc34 version to gcc cause issues in the future, possibly related to upgrades and/or istallations of other packages that rely on "gcc"? Currently the files are as follows:
2. Were the g++ and gcc files in /usr/bin the "out of the box" versions?
3. How can I answer a question like this in the future, without posting to LQ, i.e. is there a reference to find this type of information?
View 1 Replies
View Related
Aug 23, 2010
Is there some sort of standards file path convention for installing softwares that I could follow through? For example, I just learnt how to build Nginx from source. But the default binary path set by nginx is "/usr/local/nginx/sbin". I have seen a couple of tutorials which they specify the location of the installed binary and it is very different from those usual default paths. Thus, got me thinking whether is there some form of file path convention that I should follow?Is there some kind of list which states where do those packages on Debian.org Repository usually installed to?
View 6 Replies
View Related
Feb 9, 2010
[1st off...I used to host my music (A&R) website on a dedicated windows server...'cause I thought it was necessary for streaming .wma files. when I discovered it wasn't...I went w/ a standard hosting package, w/ GoDaddy...
BUT...
I moved my recording studio's site to it's own domain. [it used to be a series of pages on my A&R site.]
I now need to create a '301 Redirect' in my old site's directory to redirect surfers (who have my old url) to the new site...but more importantly...to retain my ranking w/ the major search engines...!
It cannot be done on a Windows server (which I'm on, w/ GoDaddy)...not an .htm redirect anyway, which I need. I've tried all the php, asp, etc. scripts...they don't work. [&...I don't think I really need windows features like php or asp...I code my site(s) in Dreamweaver as html pages.]
so...If I migrate my site(s) to a Linux server...
1) Will standard .wma streaming continue to work...? (i.e., a .wax file in the directory that points to the .wma).
2) Which type of server is FASTER for this task...(if any)...Linux or Windows...?
View 3 Replies
View Related
Dec 11, 2010
I have automated backups running on my ubuntu box using rsnapshot (rsync) basically following this tutorial. My concern is how to restore if everything is lost. Since it does not seem that I can backup the entire drive and that I have to choose individual folders and some like proc/ cause problems.
Currently in my rsnapshot.conf I have (see below). Is there a way to just clone the entire drive? Or should I not do this? Questions:
1, Can I backup in a way such that it is a clone of the drive so that it can be swapped with the current drive?
2, If not yes to clone, If I had a total drive failure would I install a basic ubuntu and then replace all the files with the backups?
3, Anything I might not know about that I should.
[Code]...
View 1 Replies
View Related
Dec 21, 2010
Could you please advice how to clone CentOS with all installed software to another box.
What tools should be used?
View 3 Replies
View Related
Apr 20, 2011
The situation is; I am running a web server (Ubuntu 10.10 server) on virtualbox v.4 inside Ubuntu 10.10 Desktop and now I want to clone entire web server on my brand new PC.
I found a possible solution here: [URL]
View 2 Replies
View Related
Apr 26, 2010
I decided to clone my OS partition to another hard drive using dd (without any special options). I created the target partition before cloning (25GB) but it shows up as 21GB (source/original partition's size) in df, as well as ext2 instead of ext4.
View 2 Replies
View Related