Programming :: Displaying The Information Using Awk?

Jan 14, 2010

i am using awk to display my information in a certain order.

Database :



My expected output is :


Title Price Author
Persia 42 John
France 50 Mabel


I tried using cut command but it also gives me the same problem. If i do not assign it to a variable, how am i able to format it to display it in the correct format?

View 4 Replies


OpenSUSE :: 11.4 KDE - Information Displaying On Screen

Jul 22, 2011

I am new to linux go easy please. I have about 200 machines with opensuse11.4 KDE on them, I would like certain information to stick to the background kinda like a widget type of thing that cannot be removed by a user (no admin rights) and it has to start on machine boot up and also these pcs are continually moving to different spots in our building but on the same network so idk if that changes anything with configuring the ip address.... the only things that need to be visible are as follows:

Host name
User name
IP address

So basically widgets are useless to me, unless somebody knows how to configure these the way I need them or maybe there is something better then widgets. I came here to get the right answer from all you geniuses out there instead of trying to hop around on google and whatnot. Let me know what my options are and how I can roll this out on 200 PC efficiently.

View 9 Replies View Related

General :: First Step Window Isn't Displaying Information?

Jun 8, 2010

I'm running Linux Fedora 12 here and I launched a script to create a profile and it launched successfully...

Now the problem is, after the creation of the profile its suppose to launch "first step" but now this windows appears blank and when i move the cursor around it picking the links..

View 3 Replies View Related

General :: Information Not Displaying Correctly On Gnome Desktop

Jun 19, 2010

I have installed both Fedora and Ubuntu with Gnome Desktops and it displays the information an inch to the left, this problem may have to do with the fact that the display comes up as unknown.

View 1 Replies View Related

Networking :: Displaying Bandwidth Usage Information On Network

Apr 9, 2009

I have a network connection between 3 computers sharing the same net bandwidth with the same router (modem), I wanted to know how much every one of this network taking from the bandwidth, I want an easy program like switch-sniffer (see the pic) to scan the network and tell me how much every one taking from this network in real time.

View 14 Replies View Related

Debian Configuration :: Ifconfig Wasn't Displaying The Same Information That Resides In /etc/network/interfaces File

Aug 14, 2011

i recently started sockets programming. In the process i began to look for relevant network information about my computer and realized that ifconfig wasn't displaying the same information that resides in my /etc/network/interfaces file. On the interfaces file my IP address is for interface eth0 but ifconfig displays I was under the impression that ifconfig got its information from the interfaces file but clearly doesn't. I tried re configuring the device with ifconfig and then disabling and re enabling the device with ifdown and ifup so that the device updated its information but it didn't.


View 3 Replies View Related

Programming :: Socket Programming While Displaying Received Message In File

May 11, 2011

i have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....

/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>

now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..

View 2 Replies View Related

Programming :: Using Awk For Displaying Of Row?

Jan 24, 2010


rina lives:fatin:20:20:20

i am having a small problem in extracting out the information from the database. For example, if i were to input a book titled rina into my search , i would only want it to display the row which has the title rina, like this



but when i use a coding like this :


grep -i "$Title" fruit| awk -F":" '{ print $0}'`

its displays both titles and their information


rina lives:fatin:20:20:20

for some reason, it will read both rows as both contains the word "rina".

View 8 Replies View Related

Programming :: Displaying Unicode Characters

Feb 19, 2011

I wrote a java program that writes strings to a file. The strings contain foreign language characters. When I run the program in Windows, the output file shows the foreign characters. However, when I attempt the same operation in Linux, the output file shows a white question mark in a black background instead of the foreign characters. The same Linux system could display the foreign characters if I copy the output file from Windows to Linux. I tried to create the output file using gedit that my program would then add additional strings to and chose Unicode-32 for encoding but still the same problem.

What could I do to get the program to display the foreign language characters from output text file?

View 6 Replies View Related

Programming :: Find What Is Displaying In A Terminal?

Jan 23, 2011

Is there any way to find what is displaying in a terminal in C language?

I want to automate ssh login process, I know that I can use "expect" but I want to write another program in C myself.

In first ssh try to a host, ssh prints a message like this:


The authenticity of host ' (' can't be established. RSA key fingerprint is **** Are you sure you want to continue connecting (yes/no)?

and waits for an answer. I want to enter "yes" programatically when the message appears, but I don't know how to find if the message is appeared or not. In this case problem can be solved in another way, deleting the entry of the host from ~/.ssh/known_hosts before executing the ssh command, sleeping for one or two second and entering yes. Same problem exist for password prompt and this can be solved by sleeping, too.

But it is not a general solution and can be failed if prompts appear after entering required keys.

View 8 Replies View Related

Programming :: Displaying Particular Lines Via Grep ?

Apr 8, 2011

So For example I run this command:


But want to gerp / cut it in such a way that it only displays


Now the thing is that these 3 lines are not static.. there can be N number of lines there.. the only thing is that I want the command / output NOT to display the first line but the rest of the n lines ..

View 9 Replies View Related

Programming :: Displaying A Maze Generated By A C Program ?

Oct 8, 2010

I want to write a program in C which will generate a maze randomly and find the solution for it ..

The idea behind is in [url]

How the 16 bit integer is stored in a variable...Earlier I wrote a program on trees and displayed it using dotty...Is there any such tool to display a maze...I am using ubuntu 10.04

View 1 Replies View Related

Programming :: Java Applet And Displaying Text

Mar 13, 2010

Im having various problems with the graphic printing features for applets.

In this immediate applet, when I print and update the previous line bleeds through the next line. I tried printing a series of spaces to clear the first text, but it doesn�t work.


View 8 Replies View Related

Programming :: Displaying I/O Possible When Reading Data From The Serial Port?

Aug 31, 2009

I have got a problem while reading from the serial port. I'm working on iMX-31 board and Eclipse IDE. Whenever I'm trying to read any data through the serial port, it's displaying I/O Possible and the application is being terminated. After reading I'm trying to write this data on a file. Here are the excerpts from the code:

# int main()
if (openport()<0)


View 7 Replies View Related

Programming :: Redirect The Output To Multiple Files Without Displaying It To The Screen?

Oct 26, 2010

To redirect standard output to multiple files:


echo Test | tee file1 file2

My problem is that the word "Test" still displays to the screen? I want same effect as:


echo Test > file1

but with multiple file redirection.

View 3 Replies View Related

Programming :: C++ Search And Handle Information

Sep 26, 2010

I would like to make program that reads a *.TXT file and searches for last line and constatly refreshing the search. So last line would look something like this:Mike Had A 100.0 Pound Shark.So there are multplie category of "fish"(Shark, Dolphin, etc.) and each of them have allowed weight (ie. minimum 70.0 Pound Shark, 50.0 Pound Dolphin). If in the found sentence Shark or Dolphin doesn't meet requierments than program named False.exe should be started. I dont know how to make it my self so any help is much appreciated. My knowledge on programming is very low but I'm opend for learning.

View 1 Replies View Related

Programming :: Add Version Information To An Executable?

Mar 2, 2010

when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?

View 2 Replies View Related

Programming :: Prompt For Some Information From PAM Module?

Jan 8, 2011

I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.

I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.

I've pased the sample code I've written at url.

#include <sys/types.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>

View 3 Replies View Related

Programming :: Get Information About Description Number Usb Device

May 10, 2011

How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.

View 1 Replies View Related

Programming :: Get Information About Description Number Usb Device?

May 10, 2011

How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.

View 4 Replies View Related

Programming :: Perl Extract Information For A Particular Column?

Oct 24, 2010

I have a file which has the output as shown below:


Teams | matches |Goals | YC | RC
Liverpool: | | | |
Gerrard | 97 | 100 | 41665 | 1342


I need to extract the Info from the RC column for the first 4 players of liverpool. The test code i have does the same,but can anyone show me a better way of doing it.I could do it easily with gawk -F"|" and print the respective column,but i need to do this in perl.


use strict;
use warnings;


View 7 Replies View Related

Programming :: Read Information About User Activity?

Jan 2, 2010

I wonder if there is any chance to read the last time when the actually logged user have changed the mouse cursor and stroke the key.

View 3 Replies View Related

Programming :: Information About The NUMA Architecture Supports?

May 1, 2011

Where can I the information about the NUMA architecture supports in Linux

View 3 Replies View Related

Debian Programming :: How To Include Version Information In SO Library

Oct 8, 2014

Suppose I have the library code in library.cpp. I found that to include the version information in the .so library, I had to use these command forms:

Code: Select allg++ -Wall -fPIC -c library.cpp
g++ -shared -Wl,-soname, -o

The howto then continued to recommend creating symbolic links pointing at the newly compiled library. [URL] ....

The result is, during the booting sequence, I am receiving this error:

Code: Select no version information available (required by /usr/bin/dbus-daemon).

The library is the one I am working on.

View 5 Replies View Related

Programming :: Finding A Code For Network Adapter Information?

Nov 13, 2009

I want to get the hardware information in linux. As in windows we can have API to get the network adapter information and all. But in linux why dont we have? i try to read network adapter info in /proc/bus/devices file.. but that file is very hard to parse.and i looked at the lspci source c ode. but unfortunately I dint undersatnd that code to get the network adapter information.

View 1 Replies View Related

Programming :: Editing Text Files With Information From PostgreSQL DB?

May 16, 2011

Is there any way to edit text files with information in a database? The file is supposed to be always the same.. the information is going to be addedd in a specific format

View 2 Replies View Related

Programming :: Extract Dwarf Information Debug A Section?

May 10, 2011

I would like to extract debug information but I have some problems. For example, I have a executable a.out...


nm -f sysv a.out | grep ".global_var" >vars.txt

With this command I extract all my variables. All of them are in .global_var section, and it give me follow information:


CAN_station_n |08073258| D | OBJECT|00000001| |.global_var
CONTROLend |080732a7| D | OBJECT|00000001| |.global_var


Well, I have only address of my vars, but I would like to know type var or struct of the variables. With dwarf dump I have all of information, but it is a mess...


<1><117bc>: Abbrev Number: 32 (DW_TAG_variable)
<117bd> DW_AT_name : (indirect string, offset: 0x153d): draw_limits
<117c1> DW_AT_decl_file : 128
<117c2> DW_AT_decl_line : 207


Is there any parser or way to put in order this information?? create a file with the follow information:

name of var - address - type - size - struct or not

View 5 Replies View Related

Programming :: Getting Information From Serial Port On Server Unit

Jul 19, 2011

I'm working on program that is going through setting different baud rates onto a config file. After I set a new value i want to check if it's the correct one by reading from the serial port on the server unit. I know what to expect if it's the correct baud rate so that's no problem, but searching through the internett i've yet to find a compact solution to my problem.

View 1 Replies View Related

Programming :: Create A ZIP In Perl Without Storing Path Information?

Mar 1, 2010

I have the following code snippet:


my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);


it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:


$ pwd
$ ls -R


What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.

View 2 Replies View Related

Programming :: Get Real Time Information About How Many User Are Logged In And Their Ips

Jan 20, 2009

I use tomcat as my server platform in Ubuntu for a war file. I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.

Here's the link:


In order to get users'ip, in jsp, use request.getremotehost() or request.getremoteaddress() by editing the jsp file. I wonder if there's some open source software to use for these two purposes.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved