General :: How Display Part Of An Output Stream

Feb 4, 2011

Though I have little experience in the past, i just can't get to work what i have in mind.i want to display part of an output stream.

cat sample.xml
<packet or="recv" ljid="d.sample@test.local/" ts="20110204T15:02:55"><message from='j.sample2@test.local/' to='d.sample@test.local' type='chat' xml:lang='en' id='sd61'>

[code]...

View 4 Replies


ADVERTISEMENT

General :: How To Color Part Of Text Of Output To Console

Jun 9, 2011

Is there a way to color particular words printed on console based on user preference? For example I need to color text 'error' when a particular program is compiled.

View 2 Replies View Related

General :: Windows - Use A Computers (would Be) Audio Output As A Stream?

Feb 28, 2010

I have two machines on a local area network (xp box and xubuntu box) and I want audio from both machines to be played from the same set of speakers. The problem is, the xubuntu machine doesn't have any sound output. There is no onboard sound card and all expansion slots are pci-x, so short of buying a pci-x sound card my only option for playing sound is to route audio through LAN to my xp computer.

I already have a program that will let me play music on one computer from another's speakers, but I am trying to set up a stream so that games and internet sound can be heard. Is it possible for me to do this?

View 1 Replies View Related

General :: File Output Redirection - Redirect Stream To Multiple Files?

Dec 7, 2010

I'm working on some scheduled task script files to keep nightly backups of some of our database information in place, and it's a bit annoying when they blow up. I know how to redirect stdout and stderr to a flat file I can view when I come in, and I know that 2>&1 maps them both to the same file (whatever was named in 1). However, I'm running into some cron-time situations where it's easier to have the two streams together, and other cron-time situations where it's easier to have them separated. I can't really tell which is going to happen; is there some way I could create both kinds of output file for my scripts, so that I've got a std_err only file and an interleaved std_out/std_err file?

Note: I've looked at the 'tee' command, but I don't think it will work for what I'm after. 'tee' appears to only work with stdout; I'm trying to work with stderr.

View 5 Replies View Related

General :: Display AWK Output In Perl

Feb 8, 2011

I am trying to use awk command in perl. Below is my awk comamnd which works alone.
awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat
I would like to use this awk's output in shell script. I am using system command like below to get the out put. But it is not working.
$Output = system("awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat'");

View 3 Replies View Related

General :: Restrict Output To Display One File Each?

Jul 27, 2010

I use 'grep -Ri "mypattern" .' to search for all files in the current directory recursively that contain "mypattern". But this command returns every single occurence, so that if a given file has several occurences of the pattern, the screen fills up pretty quick. More than likely, there's a way to restrict the output so that it only displays each file once, no matter how many occurences it contains, but I couldn't find how to do it.

View 2 Replies View Related

General :: Windows - Getting WGET To Display A Less Verbose Output?

Jun 16, 2011

Is it possible to get WGET to only show download progress e.g. download bar, opposed to all of the connection info, as it does look a little ugly on the client side, is this possible to do?

View 2 Replies View Related

General :: Using Cut On File Full Of Ls -l Output To Display Only Filenames?

Oct 7, 2010

I have a file that contains "ls -la" output. I would like to display only the filenames, none of the other information before it such as permissions, ownership, size, and date.Would the cut command be the best way to hit this, or should I use Vim or sed?

View 6 Replies View Related

General :: Unable To Display Output Using Awk In Array Iteration?

Jul 29, 2010

My script is not diaplying output as it contains awk while iterating over the array. My script is as follows:

shortcodes=( "56882" "58585" "58888" "57575" "57677" );
for shortcode in ${shortcodes[@]}
do
echo "`awk -F"|" '/ShortCode=tel:$shortcode/ { arr[substr($2,1,4)]++ } END { for( no in arr) { print no , arr[no] } }'

[code]....

View 4 Replies View Related

General :: Display Specific Block Of Contents Or Lines In Output?

Apr 23, 2010

Consider a situation in which you want to display only specific lines of contents from a file or of a command's output. Yes, we have head and tail commands. But, how to view all the lines of a file except the last one or vise versa when we don't know the count of lines in advance?

Consider this output:

Code:

[root@localhost ~]# ps au | grep bash
root 6316 0.0 0.0 4672 1440 tty1 Ss+ Apr22 0:02 -bash
root 20847 0.2 0.0 4672 1432 pts/0 Ss Apr23 0:12 -bash
root 21167 0.0 0.0 3920 660 pts/0 S+ 01:00 0:00 grep bash

Here, I don't want the last line (in italic) to be included in the result since the last line is due to "grep bash" in the devised command "ps au | grep bash". Well, we can rewrite the devised command:

Quote:

"ps au | grep bash | head -n 2"

But, again, here we are specifying the count of lines to be included. But, in the presented problem we don't know any count in advance!

View 6 Replies View Related

Ubuntu Multimedia :: FFmpeg Unsupported Codec For Output Stream

Feb 26, 2010

So I've been trying to convert .avi files to .mov using FFmpeg. I input something like this:
Code:
ffmpeg -i in.avi -b 1000 out.mov

And it says:
Code:
Unsupported codec for output stream #0.1
So I tried adding -acodec mp3 OR -acodec libmp3lame and it says unknown codec.

I went to install libmp3lame-dev using
Code:
sudo apt-get install libmp3lame-dev

And it comes up with this:
Code:
The following NEW packages will be installed:
libmp3lame-dev

The following packages will be REMOVED:
libdc1394-22{u} libfaac0{u} libxvidcore4{u} linux-headers-2.6.28-11{u}
linux-headers-2.6.28-11-generic{u}
I'm fairly sure I don't want those packages removed? Should mention I'm on Ubuntu 9.04 64-Bit.

View 9 Replies View Related

Ubuntu :: Display Wrapped Bottom Part Seem To Be Stuck

Feb 14, 2011

I just added a nice little HDTV as a second display on my laptop, it worked fine but I found that the text was a bit hard to read so I decided to change it, got another one yesterday, just plugged it in and everything was perfect. Today I came back from work, plugged the laptop in the monitor, booted the machine, and got a wrapped display, the bottom part (about 1/4 of teh display) seem to be stuck with the content that was visible when I opened my session, and the top part is shifted up, making it totally useless.I took a picture of the display, you can see it here [URL]... I will try to see what happen if I put back the other display, but I really want to get working with the new one.

View 1 Replies View Related

Programming :: Display Live Stream From One Of IP Cameras?

Sep 11, 2010

I've written a simple web page and I want it to display live stream from one of my IP cameras. I admit I've never been interested in HTML ... How should I go about this? I can see the stream in browser using following link [URL]

View 4 Replies View Related

Ubuntu Multimedia :: WebCamStudio With Skype - Unable To Stream Output To Other Person

Jun 3, 2010

I am using Ubuntu 10.04 and would like to use WebCamStudio with Skype 2.1 beta for ubuntu 32 bit. I though skype displays WebCamStudio as one of the webcams its not able to stream output of WebCamStudio to other person...

View 2 Replies View Related

General :: Limit Video Output To A Section Of A Display And Leave The Rest Blank

Feb 22, 2011

The video projector I have to use this week projects an image too large for its screen and spills over on every side.

Fixing the physical setup is not possible or at least unlikely for the moment: the only solution is to carefully resize and position windows so that they display in the visible part of the screen - using full-screen mode is out.

Is there a way around this via software, using xrandr for example?

# xrandr doesn't have a padding option...xrandr --output VGA1 --mode 1360x768 --left-of LVDS1 --padding 200

View 1 Replies View Related

OpenSUSE Multimedia :: Output One Playback Stream To Multiple Devices Simultaneously With The Current PulseAudio / Phonon Setup?

Jun 9, 2011

Is it possible to output one playback stream to multiple devices simultaneously with the current PulseAudio / Phonon setup? The PulseAudio mixer only has radio buttons to choose one device per playback stream. I believe the hardware is capable of this, since I remember doing that before we had PulseAudio. How can I duplicate an audio stream?

Here's one application scenario: I am travelling with my family, all crammed in small hotel room. My wife and me want to watch a movie on my laptop without waking up our kids. I just happen to have one analogue headphone available and one wireless USB headset with me. (Of course, the low tech solution is to bring an 3,5mm Y-cable to attach two analogue headsets, but I would really love to use the USB headset together with the analogue one.)

Another similar thing that bugs me is that my laptop's built-in speakers now always seem dead when an analogue headphone is plugged in. This is mostly what one wants, and before PulseAudio, one had to manually switch them off which was generally annoying. However, the downside is for example with notifications.

For example, before PulseAudio, I could configure Skype to always ring over the laptop's built-in speakers, regardless of whether the analogue headphones were plugged in. This is no longer possible, since PulseAudio does not distinguish between built-in speakers and built-in analogue port any more, while old Alsa did. So in my office, where some analogue headphones are plugged into the docking station, I never hear Skype ringing if I don't wear the headphones.

View 9 Replies View Related

Ubuntu Installation :: After Dd From Full 15GB Part To 1.3TB Part, Shows Same Free Space?

Dec 8, 2010

I just used dd to clone a linux partition to a new hard drive, it had 800mb left on the old hard drive, after dd, new hard drive lists 1.29/1.3 terabytes full. Is this what happens by default in dd? How can I fix this?

View 1 Replies View Related

Server :: How To Access Local Part / Domain Part Of Email Address In Postfix's Main.cf?

May 24, 2010

I'm trying to figure out how to access the local part and the domain part of an email address in postfix's main.cf. For example, myname@mydomain.net has myname as the local part and mydomain.net as the domain part.I get the whole email address with %s. I want to speed up the lookups by writing better database queries.I've had no luck finding this in the otherwise well documented postfix.

View 2 Replies View Related

Software :: Server Hosting Different Part Of Web Site Must Appear As Part Of Domain

Jul 13, 2009

we have access to one domain name , 1 internet ip address and may servers hosting different part of site. I want them all to be accessed via same web site . some of the server in our network are embedded devices.they have their specific utility being hosted on that machine. So the severs are bound to be distributed . I just wanted to know how can I access them via single ip, domain name.

View 6 Replies View Related

Programming :: Output The Display In C++?

Feb 8, 2010

i am having problem with displaying my text. my text file is displayed in such a way and is called test.......

Code:

Sam Worthington ... Jake SullyasZoe Saldana ... NeytiriasSigourney Weaver ... Dr. Grace AugustineasStephen Lang ... Colonel Miles QuaritchasJoel Moore ... Norm Spellman (as Joel David Moore)asGiovanni Ribisi ... Parker SelfridgeasMichelle Rodriguez ... Trudy ChaconasLaz Alonso ... Tsu'teyasWes Studi ... EytukanasCCH Pounder ... MoatasDileep Rao ... Dr. Max PatelasMatt Gerald ... Corporal Lyle WainfleetasSean Anthony Moran ... Private FikeasJason Whyte ... Cryo Vault Med TechasScott Lawrence ... Venture Star Crew Chiefmore

What i am trying to do is for the program to read "as" and then from there start a new line... thus the expected output is...

Code:

Sam Worthington ... Jake Sully
Zoe Saldana ... Neytiri
Sigourney Weaver ... Dr. Grace Augustine

[code]....

I keep getting the error saying ...

Code:

editmain.cpp.98:error: initializer fails to determine size of 'str'

what does this mean, and how can i be able to format my file in the way i want?

View 2 Replies View Related

Hardware :: Is CMOSRAM Is Part On Mother Board Or Part Of RAM?

Jan 14, 2010

In bootseqence of linux, the first step is check the CMOSRAM(size 64bytes) setup for custmor setting. So i am just confused wether CMOSRAM is a part of motherboard or is a part of RAM itself.

View 4 Replies View Related

Fedora :: How To Keep Display Open To See What Output Is?

Jan 14, 2011

I am trying to run a java .class file by double-clicking it. So far my attempts at running it have been successful, but I don't' know how to keep the display open to see what the output is.

View 6 Replies View Related

Ubuntu Servers :: How To Display Output On Ssh

Jan 12, 2011

I have two computers both running Ubuntu 10.04. I use my laptop to ssh to the other computer. If I start for instance firefox via ssh from my laptop to have the browser showing up on the screen attached to the computer I ssh to? The computer i ssh to is better in handling graphics so I want to connect it to the TV and use my laptop as remote-control.

View 9 Replies View Related

Slackware :: Consoles Don't Display Any Output

Feb 6, 2011

I am using a 64-bit Slackware 13.1 distro (I chose 64 by mistake, to be honest, as I know there's less trouble with a 32-bit distro) and I have some problems with my consoles (in text mode). After changing the runlevel in ininittab to graphic mode (4), I can't enter any of my consoles. Actually, only ctrl+alt F1 shows some output, regarding the graphic mode (I'm currently using KDE4, the default for slackware 13.1) and F6 is the only normal consoles I have access to. However, if I log out and log in (with another user, maybe) there's no output anywhere (not on F1, neither on F6).

View 1 Replies View Related

OpenSUSE Hardware :: Output Display To Another Screen?

Apr 26, 2010

I have an sony vaio laptop and the screen is pretty small so i have connect to tv with a HDMI cable but opensuse doesnt show on the tv. How do i output either the same screen or an extended desktop ?

View 5 Replies View Related

Software :: Display Output Does NOT Switch Back?

Jan 24, 2010

I have a Dell Latitude D610, and am running a 2.6.21.7 kernel. If I close the screen on the laptop, the display output switches to the external VGA output. When I open the screen, the display output does NOT switch back. This occurs when running X and when in command line mode. Is there any way to get the output to automatically switch back when I open the screen?

View 2 Replies View Related

Ubuntu Installation :: GCC Packages Installed But Cannot Display Output

Feb 3, 2010

I am beginner in ubuntu. I wish to run the programs that will display a picture which use the ffmpeg, sdl and lame. When I type gcc -o exercise exercise1.c 'sdl-config --cflags --libs' to compile the program it give this such of error :gcc: sdl-config --cflags --libs: No such file or directory. I have installed the gcc packages, SDL, FFMPEG, LAME but still cannot display the output. What should I do with the gcc packages?

View 1 Replies View Related

Programming :: Display Only IP Or IP And Hostname Output Of Nmap Scan?

Mar 28, 2011

I am running a scan via nmap (nmap -sP) and the out put looks similar to this:

Nmap scan report for x.y.z.com (10.x.x.x)
Nmap scan report for 10.x.x.x

If it can resolve the hostname it does, if not it just spits out the IP. I would like to know the best syntax to use with cut, or awk, so that the only output is either the IP or IP - HOSTNAME.

View 3 Replies View Related

OpenSUSE Multimedia :: VLC Output Display Quality - Incorrect Balance

Dec 3, 2009

The display under vlc is strangely colored in blue, or red missing. Anyway the balance isn't correct. I tried every output module but no one is correct. I am running 11.2/kde.

View 9 Replies View Related

Software :: Not Able To Stream / Connect To Stream Using Vlc

Dec 26, 2010

It seems I might be having an issue that's a non-issue. I am not able to stream/ connect to a stream using vlc.I've looked at a few walk-throughs; I follow the steps and as often as not I get no error messages but cannot connect to a stream.

View 1 Replies View Related







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