16,007 reputation
23463
bio website
location Marseille, France
age 34
visits member for 2 years, 2 months
seen 18 hours ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


19h
comment Script problem Ubuntu
This question appears to be off-topic because it is about how the OP's C application interacts with the NIC and not about Ubuntu.
19h
comment How to create my videos files
As others have said, please write in English. In any case, your question makes no sense, you need to explain what you're doing. Mporeis na metafraseis me to tranlate.google.com alla kai egw pou milaw ellhnika den exw idea ti thes na rwthseis. Ypothetw oiti katevazeis video apo to internet alla prepei na mas peis pws to kaneis, me poio browser ktl. Poia eikona? Poio shma? Tha mporousa na se voithisw me thn metafrash an thes alla prepei na exighseis ti prospatheis na kaneis kalytera.
19h
revised cd to a directory has hash (#)
Added a third way
19h
revised cd to a directory has hash (#)
edited tags
20h
comment Script problem Ubuntu
I know, I understand that but as you can see the issue is a segfault so something is going wrong and the details will depend on your application. I tell you again, you should ask on Stack Overflow and show your application's code. There is something strange going on and nobody can tell you what without seeing the code.
20h
comment Script problem Ubuntu
There is nothing special about your script, if there's a problem it will depend on how your application works. I have no idea why it would crash when you send ethernet data but it apparently does. The way you are showing is fine, there should be no issue, so there is something strange that depends on your program and, presumably, how it is getting the data from the NIC. Whatever the case, we can't help with the data you've provided.
20h
comment Script problem Ubuntu
This is sounding more and more like a question for Stack Overflow. You will need to include your C++ code.
20h
comment Script problem Ubuntu
Well, try capturing the error output as I suggested. Also, edit your question and tell us where this script is and how it is being launched on reboot. In any case, you are saying that 1) your script correctly starts the application and 2) the application stops when you send a packet. Therefore, the problem is with the application, not the script.
20h
revised Scheduled Cron Back up from EC2 to S3
formatting
20h
comment Script problem Ubuntu
We can't help without knowing what your program does. Apparently, sending data over the socket will crash your application but since you don't show it, we have no idea why. This has nothing to do with bash or the script, the problem is with your program. Try redirecting the error output to a file, that way you can get more info: ./usr/local/application 2>/tmp/application.log.
20h
comment kowing a specific user logged in 1 min
When asking a question about a script, you need to show us i) the output you are getting and ii) the output you want to get and iii) explain exactly what the script is supposed to be doing.
1d
comment source not reading symlink correctly?
@JonasG.Drange it's what you get if you call bash as sh or launch it with the POSIXLY_CORRECT variable set.
1d
comment source not reading symlink correctly?
Well, if you say that stopping the rsync changes the behavior, it kinds has to be it somehow. Did you try the strace I suggested?
1d
comment UBUNTU UNINSTALL 12.04 AS SINGLE OS ON MY LAPTOP AND TRIED TO INSTALL WIN 7.THERE IS ONLY SINGLE HARD DRIVE ON MY LAPTOP.NO PARTITION
AND PLEASE DON'T SHOUT!
1d
comment source not reading symlink correctly?
What does the rsync do? Could it be removing the file and recreating it? Such a race condition might explain your symptoms. Also try running strace bash -c "builtin . ~/.bashrc that should show you exactly where the error is happening and why.
2d
revised How to transform valid JSON to CSV?
added 46 characters in body
Oct
26
answered bash: using “cut -c” on the strings with spaces like “ ?.?”
Oct
25
comment Additional variables for “Places” dirs?
Hi and welcome to the site. Thanks for posting an answer but please don't use answers to ask further questions. If this serves as an answer to your question, then accept it and if it doesn't, please edit your original question instead.
Oct
25
comment How to launch GUI app (in Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6)
If you already have a running X session, what's the point of dropping to a tty and launching an app from there? That sounds like asking how to swim after attaching a rock to your foot, why attach the rock in the first place?
Oct
25
revised How to launch GUI app (in Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6)
No need for env