Networking :: Specifying Output Int Based On Input Int And Source IP On Multiple 802.1q?

May 4, 2011

I have a pair of interfaces bringing in traffic from multiple vlans each. I need to route or forward traffic to and output interface based on the physical interface and source IP address in the packet.I have multiple ip rules to send traffic to custom routing tables and each of those custom tables had a default route out the appropriate interface, but traffic isn't flowing. Afterwards I tried using iptables and put an ACCEPT any statement in every chain of every table. What am I missing, ebtables maybe??

View 1 Replies


ADVERTISEMENT

Networking :: Multiple Routes Based On Source IP?

Jan 29, 2010

I have 2 NICs in one box, both connected to two different routers.Is there a way to make NIC1 handle lets say 204.x.x.x and NIC2 handle the restncoming requests though.Basically, I have apache running, and I things to go through a specific NIC based on source.

View 1 Replies View Related

General :: Create A Single Line Of Output From Multiple Variable Lines Of Input

Feb 3, 2010

I need to create a single line of output from multiple and variable lines of input in a Linux bash shell script.

My input file looks like this:

Where there may be any number of umsecondaryphonenumber lines; if there is not a umsecondaryphonenumber line for a telephonenumber, I don't want to write any output.

So, the output file should look like:

The script I have so far is:

My question is - how do print each of the elements of an array in one record - i.e. what do I put in place of howdoiprintarray?

View 2 Replies View Related

Ubuntu Networking :: NFS Gives "Input/output Error" For CDROM On Network?

Jan 10, 2010

I have a desktop machine, with a DVD drive in it, mounted at /media/cdrom0I am trying to share this across a wireless network with two laptops, neither of them with CD drives in them. While I can see the cdrom drive across the network, whenever I try to open a file on it (typically something in VIDEO_TS), it doesn't allow me to access it. The error is "Error reading from file: Input/output error". If I try to open the DVD in the drive using movie player, I get the error "An error occurred. Could not read from resource."A DVD in the drive on the server works fine - it plays in movie player and in VLC. Thus far I have tried various different settings in /etc/exports on the server and /etc/fstab on the laptops. I have tried the fixes mentioned in this thread: ... namely, editing the 70-persistent-cd rules file (on the server and the client), and removing all links to block objects in /dev (on the server and the client), and even tried editing the /boot/grub/menu.lst on the server and the client, adding "all_generic_ide=1" in under # defoptions, and then running "sudo update-grub", as per the bug listed here:

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/228624The funny thing is that it doesn't always happen. It happens about 95% of the time, but occasionally, just occasionally, it works as it should and I can play a DVD across the network (which is what I am trying to do!) BUT I don't know what changes to make it work or fail - when it works I reboot to see if it will work reliably, and it then fails again. I would really appreciate any help anyone can offer in getting this one working. The machines are all on a private network, and all running 9.10 Karmic. The details of the individual machines are thus: Server (desktop): 9.10, kernel 2.6.31-17-generic, /etc/exports like this:

Code:
# Allow the DVD Drive to be exported
/media/cdrom0 192.168.10.1/24(rw,async,no_root_squash,no_subtree_check)

[code]....

View 1 Replies View Related

Programming :: Select The Branch Based On The INPUT?

May 23, 2011

I want to select the branch based on the INPUT. Here is the program segment which uses the case statement.

case $INPUT in

1)branch="Computer Science";;
2)branch ="Electrical";;
3)branch = "Mechanical";;
4)branch= "Aerospace";;
esac

When I run this script, I am getting an error, Electrical command not found?

View 2 Replies View Related

Ubuntu :: Daemon That Executes Commands Based On Input Device In Use?

Jan 28, 2011

I have a computer with a trackpad and a touchscreen. I want to run unclutter if I use the touchscreen, and kill it when I use the trackpad or a USB mouse.

The I'm pretty sure the touchscreen is /dev/input/mouse0, and the trackpad is /dev/input/mouse1

I have a general idea of how this should work, but no idea what tools and commands to use to implement it.

View 1 Replies View Related

Programming :: Bash - Calling A Specific Variable Based On User Input?

May 3, 2011

I'm trying to call a specific variable based on a user selection. For example:

Code: Select a file:

[1] foo.tar
[2] bar.tar

Enter a selection: I have already coded each possible selection to have its own variable. If the user selects 2 I need to select $SELECTED_TAR2, or if they select 1 I need to select $SELECTED_TAR1 and then do something like this behind the scenes:

Code: cp /home/user/$SELECTED_TAR2 /home/user/backup/$SELECTED_TAR2

I was thinking something like this:

Code: echo "Enter a selection: "
read -e SELECTED_NUMBER
cp /home/user/$SELECTED_TAR$SELECTED_NUMBER /home/user/backup

[code]....

View 2 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 :: Non Rolling Release Source Based Distros?

Sep 11, 2010

I've used worked with gentoo for a little while but I kind of get annoyed by the rolling release. It seems that I need to emerge something every week. So I was wondering if there was a source based distro that had a dated release of stable packages, kind of like ubuntu. The primary use of this distro will be for my latitude 2100 net-book with touchscreen and an atom processor, so it will need to have a fairly new kernel. Also, I love the way gentoo is built from scratch. It allows for a very clean system. I would be happy with either linux or bsd based system. Also, since it is this is a notebook, I would like to be able to compile through a nfs network so i can use the resources from another system.

View 11 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

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 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

Software :: GUI (GTK) Based / Open Source Computer Algebra System

Sep 10, 2010

Are there any Computer Algebra Systems in the Ubuntu repositories that are GUI (and preferably GTK+) based and open source, as well as capable of graphing (and in 3D)? That being: A complete FOSS competitor to Microsoft Student.

View 5 Replies View Related

Ubuntu Multimedia :: How To Select Input Source In Audacity

Feb 9, 2011

How to select input source in Audacity?

View 1 Replies View Related

Hardware :: Audio Channel Output On Hda-intel Based Device?

Oct 6, 2010

I use ubuntu lucid x86_64 with pulseaudio. There seems to be some issues with how the audio is sent to the sockets. When playing an MKV with surround sound "front" recieves none of the actors voices. it almost sounds like it is the rear sound. Centre/subwoofer sound works correctly. I also get a problem with headphones and front where I cannot mute front and allow only headphones instead I can just mute headphone socket. This is entirely confusing so I hope someone can help me in the right direction.

Hardware: Nvidia 7600 gfx P5QL-EM mobo with 8 channel surround sound audio and hdaudio/ac97 cable which is set to hdaudio on mine in both bios and physically connected cable.

[Code]...

View 1 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







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