Networking :: Disabled Printing Statement In The Middle Of CPP Program Execution?
Jan 25, 2011
In my program(C++), I have a ping function call which will ping the specified IP and returns the result. The problem is, my code does not print the o/p to the terminal window after calling the ping fucntion for the first time. but, the cout statements exist before the ping function call, works fine. When i debug it using strace i found that output filedescriptor is getting closed some where through close(1), before returning from ping call. What would be the issue, can u please some one explains me what the problem is.
View 1 Replies
ADVERTISEMENT
Jul 12, 2011
i m using gcc to compile certain programs.they get successfully compiled but fail to execute.Here is a sample code and the error [tommy@tommy cprog]$ vi test.c
#include<stdio.h>
int main()
{[code]....
a similar problem arises with codeblocks for the same program.the error is the same even when it is just main() and absence of return 0;
the problem exists also on c++.i m using Fedora 15
View 5 Replies
View Related
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
Jan 10, 2010
I need to find out the processing or operating time in milliseconds or in nanoseconds for the instructions or for the whole process!
for eg :
I need to calculate the time taken to execute :
And i dont want the time for whole program :
View 4 Replies
View Related
Jan 3, 2011
I went to an interview last week and there was this guy who asked a simple question that i have been trying to solve for a couple of days. I tried google but i just cant get the search keywords right. The result were just useless. Well, the question is : "How can we allocate a limited memory to a process before we start its execution" well, the question is related to an X11 system so may be some flags must be set to limit its memory.
View 9 Replies
View Related
May 3, 2011
In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).
How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.
View 1 Replies
View Related
Aug 7, 2010
I have some questions.First, how can i obtain a process execution time ( after it terminated)??? Second, in a multi-core system like SMP how can i run different processes on different cores explicitly? i.e. how can i assign a process to a specific core?
View 1 Replies
View Related
Jun 28, 2010
We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated. This file contains a statement as "ECHO="echo"".f we run "Automake", without modifying the "libtool" the system hangs and theputer needs to be restarted.Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.I think a script can be written which does the above on its own.I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.
View 4 Replies
View Related
Jan 17, 2011
I am outstation and having laptop with windows and internet connection. I want to check one small program on linux. kindly tell if some free linux server is available on internet where I can upload my program, compile and execute. The program is generic and there is no restrictions regarding linux version.
View 2 Replies
View Related
Aug 28, 2010
I'm trying to figure out how to continue execution of a Python program while a background task is going on.
In bash, it is adding "&" to the end as in:
Code:
#! /bin/bash
find / -iname "*.py" > /tmp/all_pys &
echo "looking for all python scripts and putting them in /tmp/all_pys"
(yes, I know I could just put the echo BEFORE the find but I just use it for example)
Say I do that in python (not necessarily running the shell, but perhaps using scriptutil.ffind or something similar), but want to allow the user to be doing something else while running that search in the background, how would I thread, fork, subprocess (not to be confused with the module and Popen) [or whatever I should call it] that?
View 14 Replies
View Related
May 31, 2010
Ive been using opensuse for a little while now. Recently ran into a problem My favorite mouse broke, so i went out and got a travel one. It has a very toucht third button under the scroll wheel. Apperently this button is to paste, but every time i scroll, it makes my life miserable, especially when im reading a lengthy page in firefox. I cannot figure out how to program the buttons. Ive googled, and seen some programs that MIGHT help. but this seems to be something that is built in to the OS. The mouse yast plugin doesnt give you the choice of shuting off the third button, or even reassigning it. I want the paste functionality GONE from my **** mouse
View 4 Replies
View Related
Oct 6, 2010
I've written a simple perl code to learn switches in perl.My code is pasted below,
#!/usr/bin/perl
$opt = 1;
switch($opt) {
[code]...
View 3 Replies
View Related
Feb 14, 2011
I recently loaded Inkscape on my 11.3/kde4.6 system.I have Inkscape 0.48 loaded, had same issues with 0.47. Program functionality is fine, except for printing.When attempting output to either a laser or inkjet, the output has excessive margins and appears to be formatted for A4, not letter. The print drivers are set for US-letter.I have seen references to Inkscape using gtk-printing or gnome-printing. I do not see packages with this specific naming available via yast.The printers work fine from GIMP, OpenOffice, etc.I also have loaded Inkscape to Win32 box, open file from 11.3 box, and have similar issues, margins seem set to large offsets, but there is no place in the page setup to set margins.My solution so far has been to save to PDF, then print from Ocular, which does work, just cumbersome.
View 2 Replies
View Related
Aug 20, 2010
I am in need of some input as to what may be a good cd/dvd label printing program or utility.I have used nero and surething on windows. I already tried glabel, the only template it has is for doulble sheet cd/dvds.I am looking for a single template or instructions for making labels in gimp or inkscape.
View 1 Replies
View Related
Jul 27, 2010
i tried a code to accept a character and print the same ! i can accept it with following code but its not working with printing that character i use NASM version 2.07
Code:
segment .data
msg1: db 'Enter a key',10
msg1len: equ $-msg1
[code]....
View 3 Replies
View Related
Oct 13, 2010
In order to debug a problem, I want to list down as many as possible reasons of a server (SOAP server running on Fedora 10) sneding RST in middle of packet transfer. Please note that in my case, SYN and ACK of initial handshake went through. Server received request from client and started data transfer but then suddenly, server sent RST in between data transfer.
View 4 Replies
View Related
Jul 13, 2010
I do have internet cause I am using it on W7. The only thing that I have done different is I left the pc on over night so I guess it went to suspend for the first time. Then I powered off. After turning the pc back on and logging in I have no internet. Not even with the Ethernet plugged directly in. There is supposed to be a little blue light on when it sees the wireless and that is off. When I click on the networking icon in the system tray it says networking disabled. It shows no wireless. When I plug directly in I still get nothing. I'm using 10.04
View 2 Replies
View Related
Jul 28, 2010
We developed qt based application in linux. I wish to stop ejecting the paper after printing over.How to do it.
View 2 Replies
View Related
Mar 8, 2010
I have just finished installing 9.04 via USB onto an Acer Travelmate C110.For the record, 9.10 refused to even boot on this laptop. I used universal-usb-installer and unetbootin, both without success.The installation completed successfully, except that wireless networking is not enabled. Can someone please point me to the correct resource whereby I can get the wireless nic working.
View 3 Replies
View Related
Oct 10, 2010
I can't upgrade to Ubuntu 10.10 because it said that there's a problem with my network connection. When there's none, since I am typing this now.
View 2 Replies
View Related
May 31, 2010
I expected more from ubuntu 10.4 with regards to printing with exact size photos and with poor auto colour printing but the situation remains unchanged! for instance .. the photo size configurations for ubuntu/fspot/gimp and others are not compatible with my printers (HP and Brother) .. here in Europe a typical standard size photo (10x15inches or 150x100mm are not even on the Ubuntu listing? I have tried all listed possibilities including "custom" (which does not seem to ever work correctly?)and the result at best is photos with uneven boarders or at worse my printer goes a bit crazy with much wasted photo paper and expensive ink ...even photos selected for "no boarders" still produces photos with the self same uneven boarders.
I have tried pretty much everything over time following advice in this forum and including using HPlip and updating drivers required for my Brother printer but the root problem seemingly lies with the Ubunto photo size setup listing. Working with Ubuntu over the years I have found that it can do pretty much everything that Windows can do except for this dam ongoing photo quality and configuration problem.
View 9 Replies
View Related
Aug 25, 2010
Everything worked fine on kernel 2.6.33-6.But since the update to kernel 2.6.33-8, not always but nearly everytime I resume from suspend, my wireless network is disabled.When I right click the tray Icon the "Enable Networking" box is unticked and greyed out.Only a reboot brings networking back
View 14 Replies
View Related
May 27, 2010
Last night I was using my sony vaio vgn-nr38m online with no problems. I boot up this afternoon and it now says networking is disabled.
View 1 Replies
View Related
Oct 24, 2010
for some reason, since i switched to a static ip configuration my wired nic is disabled at startup. in order for it to work i have to manually start it with ifup. i am not using a network manager of any kind.
[Code]...
View 1 Replies
View Related
Aug 6, 2009
I try to install one program called "iprint" but it tell me that I missed on package named "cup-libs-32bit" and after I search for that file, I found out it 's not fedora package but it is opensuse package. I wonder what the package is the same package with cup-libs-32bit for fedora. this is how it show after I try to install
[ESPADA@localhost iprint]$ rpm -Uvh novell-iprint-xclient.x86_64.rpm error: Failed dependencies: cups-libs-32bit is needed by novell-iprint-xclient-sl-6.500.20081007-1.x86_64
View 9 Replies
View Related
Jan 22, 2010
My wireless gets randomly disabled in my Acer Timeline 3810 with F11. The time it can take is basically random, but most of the times it ends up happening. I get disconnected, and then in the network manager in gnome panel wireless network appears disables and in fact the option appears grayed out. The only thing I can do to get it back workinh is restart.
View 4 Replies
View Related
Jul 16, 2010
I cannot seem to enable my wireless connection in 9.10. I know that the connection WAS WORKING maybe a month or so ago. However, 99% of the time I am wired.I am using a BCM4312 It shows up in lspci The drivers are loaded (wl, lib80211 and lib80211_crypt_tkip) If I look at System->Administration->Hardware Drivers the Broadcom STA driver is active. dmesg says that the interface is eth1 but then moves it to eth2 If I click on the network icon in the panel I have options for connecting to eth0 (wired lan which works fine) but under "Wireless Networks" it says "Wireless is disabled" in gray.
View 2 Replies
View Related
Sep 9, 2010
I after updating or something I wasn't able to connect to the internet(neither wireless, nor wired) anymore. I managed somehow with google-ing to fix the problem with the wired internet, but my wireless is still disabled.
Here is what I got:
ifconfig
Quote:
I have the Broadcom STA wireless driver installed.(System - Administration - Hardware Drivers)
View 1 Replies
View Related
Aug 7, 2011
Everything was working fine today and for many days before today. (this is a pretty fresh install of 10.10 Maverick).
I installed a VPN connection (PPTP) to connect to work.
That worked fine. i connected, remoted into the machine I wanted and did what I had to do.
I was ABOUT to disconnect from the VPN and when I clicked on the network manager icon BAM it said DISCONNECTED. saved me another click or 2. But now I have no networking at all.
The network manager icon says "Networking disabled"
I tried: warm booting a couple times cold booting a couple times
I also tried:
Code:
service restart networking
and
Code:
sudo /etc/init.d/networking restart
[Code].....
I would really just like to delete/uninstall anything that has to do with VPN's and see if that works. Or maybe reinstall network manager. Are those reasonable places to start?
View 3 Replies
View Related
Aug 27, 2010
Is there a way to disable ping in the network instead ping of IP addresses must be hostname or a name.
View 1 Replies
View Related