General :: Unexpected Output From Program?

Sep 8, 2010

while doing socket/network programming, i am getting SSH-2.0-openssh4.7 error, instead of showing day time of server.general description i have Linux Box, with the help of putty i am connecting from windows system to Linux box,no problem in loging,after typing program, i am running the program with gcc. when typing ./a.out, it is showing SSH-2.0-openssh4.7, actually it should display daytime from linux box in both tcp and udp.

View 1 Replies


General :: Error - Gzip :stdin:input /output Error /bin /gstar :unexpected EOF In Archive

Mar 28, 2011

when iam opening my dec_backup folder the folling error is appering :

the error is gzip :stdin:input /output error
/bin /gstar :unexpected EOF in archive
/bin /gstar: error is not recoverable :exesting now

View 1 Replies View Related

Software :: Unexpected Output From Stat --format %h?

Mar 6, 2010

stat is (generously) giving twice the expected output:
c@CW8:/tmp$ touch foo


View 2 Replies View Related

General :: Program To Visualize Anything That Goes Through My Audio-output?

Jun 1, 2011

I'm looking for a program that will visualize anything that goes through my audio-output (in this case it's Spotify) and display it on the screen. Does this exist?

I'm running Ubuntu.

View 1 Replies View Related

General :: Assign A Variable To The Output Value Of A Program?

Feb 6, 2011

so i wrote myself a very simple hellworld program in c++

...the usual stuff
int main()


View 3 Replies View Related

General :: Executing PHP File And Read Output To Program

Jun 29, 2011

I'm using Ubuntu and I'm programing with eclipse CDT. My goal is to execute a php file and read the output to my c++ program. To do so I thought I should use fork(), dup2() and execl. When in shell, the call "php myscript.php" worked just fine, but when in c++ I tried:
execl("usr/bin/php", "php", "home/geiger/workspace/SemiServer/server_content/myscript.php", NULL);
And it didn't work (the process wasn't terminated and I got no output). I tried different version of this call, like losing the "php" string and/or drop "home/geiger" from the path string, to no better result.

View 1 Replies View Related

General :: Redirection - Redirect The Output Of A Program To The Diff Command?

Jan 13, 2011

I have a program that writes to stdout. Is there a way that I can redirect the output to the linux diff command or do I have to write the output to a file and then compare that. For example I have a bunch of test input files for a program and the corresponding expected output in another set of files. And I'd like to do something like ./program < t1.input | diff t1.expected.

View 3 Replies View Related

General :: Program That Reads Multiple Pipes / File Descriptors And Writes To Standard Output

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

Programming :: Output Of The C Program?

Jun 8, 2009

See the first program below :


This code when compiled gives the following errors:

1. conflicting types for 'fun' at line no: 9

2. previous declaration of 'fun' was here at line no: 3

Why is this happening?

If i modify the above program as shown in the second program below:


This code when compiled gives no errors.

Why the difference occurs between the first and second program?

View 8 Replies View Related

Software :: Use Touchscreen Output In C Program?

Apr 29, 2011

i use touch screen monitor .when some one touch on screen i want to wake up in my c program and i use this touch usb output for my prograam

View 1 Replies View Related

Ubuntu :: Make A Program Output To Serial?

Nov 29, 2010

I've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:


and set it to autostart with:

chmod 755
mv /etc/init.d/
sudo update-rc.d defaults

What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?

I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python >> ttyS0 in shell script?

View 1 Replies View Related

Ubuntu :: Way To Select Which Output Device Program Uses?

Jan 8, 2011

Is there any way to select which output device a program uses? I notice many Ubuntu programs lack the choice to choose where the sound is outputted, for example Rhythmbox and Exaile.I have 3 sound outputs (Internal, PCI, HDMI) connected and I'd like to for example use the PCI card as default audio device but play music from Rhythmbox through the internal motherboard output.

View 2 Replies View Related

Software :: Match Pid Value In Ps Output To Threads In Program?

Jul 20, 2010

I have a multithreaded program running. The threads are created by using pthread_create(). The ps shows a pid value for each thread in the process. The name of the thread is all the same as the parent process. I want to match the PID values in the ps output to the threads in my program. But when I used getpid() in each thread, the value I get is different from what ps shows. How do I match the pid value in ps output to the threads in my program.

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.

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


View 4 Replies View Related

Programming :: No Output To Log File From Daemon Program?

Mar 18, 2011

I am learning Linux daemon programming and write a simple daemon program. The issue is no data is written to the log file (/var/tmp/simpledeamon.log) though the file is successfully created (it's file size is zero from ls -l output). Could someone kindly point out the error in my program,The code is based on the Devin Watson's article at Here is the code:

// simplydaemon.cpp
// A simple Linux daemon.
#include <sys/types.h>


View 2 Replies View Related

General :: Tar - Unexpected EOF In Archive

Feb 14, 2010

I had created a tar ball of my home folder. But after formatting the system when I tried to untar it, it is showing the following error:


How to somehow recover my home folder!

View 3 Replies View Related

Programming :: Uncertain Output Of C++ String Concatenation Program

Sep 15, 2010

The below program is giving unpredictable and wrong output when I compile with g++ under Ubuntu OS , tried with the complier avilable with Ubuntu 8.04 and Ubuntu 10.04 LTS.

But it works fine when complied and ran Redhat g++ 3.4.6

View 5 Replies View Related

Ubuntu :: Redirecting Output From Printf Statement In C Program

May 22, 2010

I've got a C program that I've added some 'printf' statements to monitor a couple of variables. When I run this program manually or from a script, the output is displayed on screen. However, I need to change various variables in the 'test.c' file, run 'make clean' and 'make' a few hundred thousand times. I'm using a script to read the variables in and then using sed to do in-place edits of the file. Unfortunately, with this amount of iteration, it is getting rather tired!

Anyway, I've created a script that is working as long I respond to prompts. I've tried the following to no avail: Code: /path/to/script > /tmp/output /path/to/script > /tmp/output 2>&1 /path/to/script | tee (no output even after adding the -a option) In my C program, I have the following 'printf' statement: Code: printf ("variable1: $s variable2: $s",var1,var2); What am I missing? I've worked with redirection before and it's always worked out fine, but this one plain stumps!

View 2 Replies View Related

General :: DNS Unexpected Rcode (SERVFAIL)

Jan 27, 2010

From last few days i am getting some log messages in /var/log/messages. The log is .... unexpected rcode (SERVFAIL) from master I am not sure what is it.

View 8 Replies View Related

General :: Bash_profile [ Unexpected End Of The File ]?

May 18, 2011

I'm trying to edit the bash_profile but I'm getting this error."/.bash_profile: line 46: syntax error: unexpected end of the file"Here is my bash_profile.

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then


View 3 Replies View Related

General :: Unexpected Inconsistency Run FSCK Manually

Jun 8, 2011

RHEL 5.4. I'm facing the following error after rebooting the server:
/dev/VolGroup01/u04: UNEXPECTED INCONSISTENCY Run fsck Manually"
*** An error occurred during the file system check.
*** Dropping you to a shell: the system wil reboot
*** when you leave the shell.
give the root password for maintenance:

-Previously I performed a lvreduce command on a LV, after the lvreduce, I reboot the server.
-After login as root I run:
e2fsck -f /dev/VolGroup01/u04

But, it shows:
The filesystem size (according to the superblock) is 5218304 blocks
The physical size of the device is 1310720 blocks ...
either the superblock or the partition table is likely to be corrupt
abort<y>? no
pass 1: cheking inodes, blocks, and sizes
error reading block 1310722 (invalid argument) while doing inode scan
inore error <y>? y

-Additionally, trying to lvdisplay, it shows:
Locking type -1 initialization failed
I have no important data on that LV, but I can not boot the server properly.

View 4 Replies View Related

General :: Syntax Error Near Unexpected Token

May 4, 2010

find /opt/postfix/mail/ ( -iname * -o -iname .* ) ! -type p -exec grep -i -c {}; -xdev -print
When I do this command I receive this error message:
-bash: syntax error near unexpected token `('

View 2 Replies View Related

General :: Syntax Error Near Unexpected Token `else'

Dec 1, 2010

I wrote a script to start portal.

Its start portal (not a problem)

Only getting following message:

This is the else before second logic

View 32 Replies View Related

General :: Find -mtime Gives Unexpected Results?

Aug 12, 2010

$ ls -l
-rw-r--r-- 1 username vuser 35553 Aug 9 18:15 note.20100809_1815.sql


View 3 Replies View Related

General :: Installation Not Starting - Unexpected Exit

May 14, 2010

Can't install linux on PC. Get the massage "Starting udev... udevd-work[137]: 'sbinblkid -o udev -p/dev/tmp-blo k-7:14' unexpected exit with status 0x000b.

View 3 Replies View Related

General :: Sort Generates Unexpected Results

Jun 7, 2010

I sorted a large mailing list and the result is in almost sorted order, but not quite.The sort was invoked in the default manner, just "sort".See (below) a segment of the output file.(Note: the actual files have a street address following each name.I have omitted the addresses to avoid complaints about disclosing personal information on-line.) I expect all people named KATZ to be grouped together, but they aren't. This phenomenon occurs elsewhere in the output file, so it has nothing to do with surnames beginning with the character string KATZ.

View 5 Replies View Related

General :: Syntax Error Near Unexpected Token `in'

Jun 28, 2011

I'm trying to install the Sun Java plugin to use in Chrome. The installation seems to have gone well, but I have hit an error trying to create a symbolic link of the library in the plugins directory of Chrome.

When typing in "in -s /opt/java/jre1.6.0_26/lib/i386/" I get "Syntax error near unexpected token `in' ". I'm not sure what could be wrong, I'm in the right directory.

View 2 Replies View Related

Ubuntu Multimedia :: What Program To Use For Monitoring Sound Output Level / Vu Meter

Nov 27, 2010

Can someone recommend a good app to monitor the OUTPUT of my soundcard? I don't just want to look at the VU meter of my music player - i actually want to see what the soundcard is outputting. Windows drivers for my soundcard (Audiophile 192) had this ability, but I'm not sure what software to use in Linux.

View 6 Replies View Related

General :: Remove A Folder : Getting An Error : Unexpected EOF While Looking For Matching?

Apr 8, 2011

I tried to remove a folder in linux, davidanderson'spetshop_617 as a folder name. It contained a single quotes. By using the following command

rm -r path/davidanderson'spetshop_617

I am getting this error ,Error: unexpected EOF while looking for matching `''unexpected end of files.How can i remove the folder?

View 2 Replies View Related

General :: SSH: Server Unexpected Closed Network Connection

Jul 4, 2011

In my case, it occurs intermittently when trying to connect using putty's command line client 'plink.exe' to a linux machine using ssh. For some testing purposes, a linux server is setup with 8K virtual ip addresses and the testing scripts will connect to these ip addresses through ssh using plink.exe. There will be concurrently 25 ssh sessions launched to the server. While it works for sometimes, it throws 'server unexpectedly closed network connection' error intermittently. If the same ip address is tried again manually, it works. While the ssh server is accepting connections, this error is thrown sometimes and unable to find out the reason from the logs. It is not that the ssh connection is completely blocked. It gives this error message while connecting to some of the virtual ip addresses but works some times.

The hosts.deny, sshd_config are tuned to allow the connections, allow more sessions etc.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved