Software :: Taking Output From Lspci And Using As Input

Mar 25, 2011

I want to take the output from lspci | grep VGA and grab the BusID's of each video card installed on a server. I then want to take these BusID's and convert them to decimal (Which I can do fine). I then want to take these numbers and have them as the input of a few perl search and replace commands for xorg.conf. I'm mostly stuck on trying to get each BusID that is outputted from lspci and using them as inputs (or variables).

View 1 Replies


ADVERTISEMENT

Ubuntu :: Lifeview Hybrid FlyDVB-t / Can't See It On The Lspci Output?

Jul 7, 2010

I am currently trying to make a Lifeview Hybrid flyDVB-t tv tuner work on Ubuntu Lucid. The problem is that I can't even see it on the lspci output, here it is:

Code:
$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
code....

I don't know what else to do, and I've been looking for a lot of time online.

View 2 Replies View Related

Software :: Applications Not Taking Typing Input?

Jul 8, 2010

I'm using an application, then suddenly, it won't take any typed input. Happens on my internal and USB keyboard (is a laptop). Happens usually to just one application at a time (I can type in other applications). The only way I see to fix it is to quit the application, and restart the application. Very bad if I have lots of work open!

Software where I have seen this problem:
firefox
gedit
gimp
save dialogs

My setup:
Debian 5.0.4
XFce
SCIM

View 1 Replies View Related

Programming :: Bash Scripting - Taking User Input And Adding It To A Particular Area Of A File?

Jan 12, 2010

in bash scripting...say I want to take the input from a user via a question...I would do this:

Quote:

#!/bin/bash

echo "How large do you want this partition to be in GB (enter only the number)?" read PART_SIZE echo "You want your partition to be $PART_SIZE GB" But I don't want to echo it back to the screen, I want to add it to the content of /etc/fstab. I have been mucking around with sed to find the tmpfs partition in /etc/fstab and add the partition size attribute (this is to use the onboard RAM as a volatile partition)...but am not having any luck...

The portion of /etc/fstab that uses /dev/shm for the tmpfs partition is:

tmpfs /dev/shm tmpfs defaults 0 0

So, if a user says "24" GB to the answer (from above), how do I get it to automatically add that value to the tmpfs partition line in /etc/fstab? So it would look like:

tmpfs /dev/shm tmpfs size=24g,defaults 0 0

I understand that I would also have to come up with a way to put "size=XXg", which I could do with a copied over generic file before this action...then the script would have to find "XX" and replace it with the user's figure...

View 7 Replies View Related

Ubuntu :: Output To Input ?

Jan 7, 2011

What does this command mean? Is this some sort of a pipe where output of one program goes to input of another?

Code:

View 4 Replies View Related

Ubuntu :: 5 - Input - Output Error

Nov 19, 2010

Today went from jaunty to koala then to lucid. The package manager doesnt work nothing works in terminal for apt-get or anything getting the message ---->

View 1 Replies View Related

Ubuntu :: SSD -- /dev/sda: Input/output Error?

Jun 25, 2011

Quote:Error benchmarking: helper exited with exit code 1: Error reading 27099136 bytes at 2509258752 from /dev/sda: Input/output errorthis issue is also preventing me from making a copy/backup of the partition with gpartedwhich i decided i should do since i had a scare when booting todayunable to mount / i said fix itthen it said /var was not readyi waited it became readyi am running 10.04.2 would upgrading the kernel to get trim support fix it?

Code:
sudo fsck -t ext4 /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
System: clean, 247383/983040 files, 1394162/3907803 blocks
Solution: drive is under warranty and it needs to be used this is not software problem

View 5 Replies View Related

General :: [bash] Output Of One Script Is Input Of Another?

Mar 20, 2010

Now, I have one script called "defcon" defcon gets the current DEFCON level and outputs it using echo.

Code:

#!/bin/bash
DEFCON=`curl -s http://members.tripod.com/~Swat_25/defcon.html | sed -n '/^$/!{s/<[^>]*>//g;p;}' | sed '/^$/d' | grep '[12345]$'`
echo "The current DEFCON level is $DEFCON"

The second script ("tweet") updates my twitter account.

Code:

#!/bin/bash
curl -s -u USER:PASS -d status="$@" http://twitter.com/statuses/update.xml > /dev/null

What I want to do is be able to update my twitter account with the current defcon status (this is really more of a learning thing than something I actually want to be doing). The original script for tweet replaced $@ with $1, but if I use:

tweet `defcon`

it only uses the first word in the string, similarly if I used $2 or $3.So I changed it to $@. The normal function still works, but typing:

tweet `defcon`

updates twitter with nothing.

EDIT I should mention the /dev/null is there to catch the output of curl, otherwise it won't run silently. It still updates twitter normally with the send to /dev/null

View 1 Replies View Related

Fedora :: Input / Output Error On NTFS HDD

Mar 25, 2011

My dad is out of town for a while, so I've been using his computer to rip my DVDs with Handbrake. He has Windows Vista installed, so I did a full installation of Fedora 13 on a thumb drive and just run everything off of that. However, when I went to delete some of the encoded videos after I had moved them to my computer, I got a system error that said 'can't delete files: I/O error.' Now, if I try to boot up Windows, his computer is stuck on a black screen checking a bunch of dlls. He'll be back in a couple of weeks, so I'd like to have it fixed by then.

View 2 Replies View Related

Ubuntu :: Cannot Access [dir]: Input/output Error?

Jun 9, 2010

I have dir in my HD that is very important to me,but when I try cd commad to go in the dirI got this message:cannot access `./Lab': Input/output erroralso when use ls to view the currently dir and the other dir's also I got this message:"ls: cannot access Lab: Input/output errorLab"with touch:touch: cannot touch `Lab': Input/output errorwith mkdir:mkdir: cannot create directory `Lab': Input/output error

View 3 Replies View Related

Red Hat / Fedora :: Input - Output Erro When Cloning ?

Apr 27, 2010

I'm trying to clone 2 raid sets using dd.( have done this successfully many times in the past)
this time however running into issues.

dd stops with a 'input/output error'

dmesg shows:

A little above this i find

Background: this is a proliant sevrer & has got XFS filesystem on it. Last weeek it showed some XFS errors, tried to do a repair but didnt work.So thought would clone the raid set from a good 'source' server. ( we need this for a test purpose )

Before cloning I deleted raid & created again. everything looked OK, all disks showed as GOOD, but then the dd copy failed with above msg. I'm sure the source raid set is in good condition. Any thoughts on what could be wrong here & how I may be able to recover it?

View 2 Replies View Related

General :: Dd Block Input/output Size?

Mar 8, 2010

I'm trying trying to understand dd, and I'd like to know why frequently do we have to use a block read/write size, like "dd bs=1024", "dd ibs=512"... If it executes the operation byte by byte, isn't it irrelevant? What is this block size then?

View 6 Replies View Related

Software :: Can't Copy DVD With Dd - Input/output Error

Jul 13, 2010

Can't copy DVD with dd - Input/output error

Code:
kevin@orangebox:~$ dd if=/dev/dvd of=~/Videos/backup.iso bs=2048 count=4169919
dd: reading `/dev/dvd': Input/output error
191160+0 records in
191160+0 records out
391495680 bytes (391 MB) copied, 154.38 s, 2.5 MB/s

View 4 Replies View Related

Programming :: C Program To Get Input Of Array And Output It

Aug 14, 2010

I am creating a 15 integer array which is input from the user and outputted for the.

Ex.
Enter the array values: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Your values are: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Code:

View 4 Replies View Related

Programming :: Giving Output Of A Command As The Input To Another

Sep 7, 2010

While making a shell ,there is the following problem Im facing:

I am expecting the user to enter commands in the following format :

I am to separate these and the output of ls -l should be given as input to grep and the output of both to more.

But I am allowed (by our instructor) to use dup/dup2 or any other command(but not pipe or tees).

How to connect the file descriptors after successful execution of each command?

View 5 Replies View Related

CentOS 5 :: EBS Volume - Input / Output Error

Feb 24, 2011

We are running an C++ application in AWS EC2 instance (CentOS 5.4) mounted with an EBS Volume (say /mymountpoint). We do more simultaneous writes to the EBS Volume from our application. But at some point we get 'ERROR: Input/output error'. After this, 'ls -l /mymountpoint' command itself fails with the i/o error. The filesystem which we use for the EBS Volume is xfs. I unmounted the drive and done xfs_check and again mounted the drive. Now, everything seems to be working fine. But the issue still persists everytime when we do simultaneous writes.

I believe the following details will be useful,
[root@domU-12-31-39-07-81-36 StoreGrid]# cat /etc/redhat-release
CentOS release 5.4 (Final) .....

Output of dmesg :
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
Filesystem "sdh": Disabling barriers, not supported by the underlying device
XFS mounting filesystem sdh
Ending clean XFS mount for filesystem: sdh .....
Starting XFS recovery on filesystem: sdh (logdev: internal)
Ending XFS recovery on filesystem: sdh (logdev: internal)
The XFS utilities are in v2.9.4

View 2 Replies View Related

Fedora :: Input/output Error When Trying To Copy DVD Contents With DD

Mar 3, 2010

I even threw some video DVDs at it to make sure it wasn't the disc.

Code:

[pickens@acer1 Videos]$ dd if=/dev/sr0 of=POTC.iso
dd: reading `/dev/sr0': Input/output error
5088+0 records in

[code]....

I am getting the same thing on my laptop running Mandriva, oddly enough. Two different drives, two different computers, two different distros and multiple DVDs.

View 9 Replies View Related

Fedora :: Cannot Remove `file': Input/output Error

Jan 21, 2011

When running rsnapshot tonight it failed with a bunch of

cannot remove `file': Input/output error

errors.

I navigated to the directory and tried to delete it manually and I got the same errors. I tried with 'sudo rm directory'. How else can I delete this directory? What would cause a situation like this?

View 9 Replies View Related

Fedora Hardware :: Tape Input - Output Error ?

May 3, 2011

I'm either missing the obvious or have four identically defective tape drives. Each is a Seagate or IBM Travan drive (yes, I know they're old and I need to access the data; they were in Win boxes) using QIC-80/DC-2120 media. I've been trying to solve this using three Fedora boxes (different versions) and one Debian machine.

The OS's recognize the drives and they show up as /dev/st0.

With no media in the drives, I get a status report; with media inserted, I get the same input/output errors.

Examples (all as root):

With tape inserted:

With no tape in drive:

With tape inserted

Everything I've found on Google suggests that the drives are defective.

View 4 Replies View Related

General :: Cp: Reading `filename': Input/output Error?

Feb 18, 2010

I wish to know what could be the possible cases for this error:cp: reading `filename': Input/output errorI am getting this message when I am trying to copy a big file of around 50MB.

View 2 Replies View Related

Ubuntu :: Unable To Open Input/output Files

Jan 23, 2010

At the time of INSTALLATION im getting errors about not able open Input/output files... and some other errors... im using SATA 80GB HDD... i have already installed XP....

the sad thing is two months back i installed UBUNTU ..and i have worked on it...
but unfortunately i formatted my entire system and now i got this problem...

View 2 Replies View Related

Ubuntu Multimedia :: Dual Audio Input - Output ?

Feb 28, 2010

I am attempting to connect a bluetooth headset to a Telex Intercom System. I can connect my bluetooth headset to Ubuntu and use the microphone and the speaker perfectly. There are no problems with the Line-In or the Line-Out.

Is there any way to connect the BT-Microphone to the Line-Out while connecting the Line-In to the BT-Speaker?

View 1 Replies View Related

Ubuntu Multimedia :: Input - Output Error With Growisofs

Mar 10, 2010

I use the growisofs command from the terminal to do most of my burning. Mostly because i burn almost the exact same type of file every time so its pretty easy to set up. I've done this dozens of times and never once had a problem before. I loved it because it was so much simpler than doing this in windows where i would need to install a few extra programs and codecs. That was up until today where it started failing every single time i tried to burn something.

For some reason every time i try to burn a disc it gives me this error message:

Code:

I'm really at a loss as to why this is happening. Every thread i found that discussed this problem was mostly focused on k3b or brasero and never really answered the question. As far as i know nothing has been updated since the last time i burned a disc a few days ago. Everything is exactly the same as it was when it worked. The only thing i could think of that might have caused this sudden failure is that i flashed the firmware of another cd drive using the same sata port that this drive is currently plugged into, but that was in windows so i dont see how it could have affected this drive.

View 1 Replies View Related

Ubuntu :: Cannot Access /etc/mtab: Input/output Error

Mar 20, 2010

Code:

ubuntu@ubuntu:~$ ls -al /etc | grep resol
ls: cannot access /etc/mtab: Input/output error
ls: cannot access /etc/resolv.conf: Input/output error

[code]....

Quote:

Code:

ls: cannot access /etc/mtab: Input/output error

I don't like the look of this at all!

View 6 Replies View Related

Ubuntu :: Errno 5 Input/output Error When Trying To Install 10.04?

May 2, 2010

The title is pretty self explanatory, I was just wondering how to overcome this error, if I can...

View 9 Replies View Related

Ubuntu Installation :: Input / Output Error During Write On /dev/sda

May 23, 2010

I'm trying to install ubuntu 10.04 on my desktop. I would like to erase my old xp completely and have only ubuntu as my OS. I boot from cd but when I install it stops at 15% and keeps giving me this error:

Input/output error during write on /dev/sda.

It won't let me retry or ignore and when I cancel the installation continues until I get another error.

View 2 Replies View Related

Ubuntu :: Input/output External Hardrive Error

Jul 23, 2010

I installed Ubuntu 10.04 two days ago and was using my 1tb passport external HDD with it to download and store files. However today whenever i try and copy/cut and past to the HDD i get this error message..

Error opening file '/media/My Passport/test.avi': Input/output error This is obviously very fustrating and i want to stay with Linux but i do need to fix this problem else im afraid im going to have to back to awful windows.

View 4 Replies View Related

Ubuntu :: 10.04 Install Encountered Input / Output Error

Aug 19, 2010

I'm having some trouble installing Ubuntu 10.04. What I am trying to do is completely wipe all things on my computer and install Ubuntu. I have followed the instructions from Ubuntu's homepage on how to download the ISO, and ran their program to put it onto a portable USB device. Through doing all of this, I receive no error messages. Then it tells me to change the BIOS to boot from USB, so I did that. I've successfully accessed the install menu and filled in all the information requested (i.e. computer name, account name, etc.). I select that I want to delete the current partitions and use only Ubuntu. It starts to install, but at 67%, while copying files, I receive an error.

This error is:
The installer encountered an error copying files to the hard disk:
[Errno 5] Input/output error
This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment.

View 9 Replies View Related

Ubuntu Multimedia :: Pulseaudio Record From Input - Output ?

Sep 8, 2010

What i am trying to acomplish is this

Code:

I have found a few guides that were to accomplish this, but they seem outdated as options they call for are not available to me.

View 4 Replies View Related

Ubuntu Installation :: Input - Output Error When Booting From CD

Oct 2, 2010

I got interested in it when trying to play Windows games on my Mac. I've tried WINE and didn't get anywhere fast, but thats another thread for a different forum.

For now I'd like to try Ubuntu. I downloaded the ISO and burned it to a DVD and a CD.

When booting up my computer I get this message:

I have no idea what this means. I've tried to find answers on this forum with no luck.

The computer in question:
iMac8,1
Intel Core 2 Duo
3.06 GHz
4GB Memory
NVIDIA GeForce 8800 GS (512 MB)
MacOS 10.5.8

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved