How can I sum (using Linux shell) numbers in a column? If possible, I don't want to use powerful tools like awk or perl. I want something like giveMeNumber | sum
How does buffering work with sockets on Linux?
i.e. if the server does not read the socket and the client keeps sending data.
So what will happen? How big is the socket's buffer? And will the client know so that it will stop sending?
I have a list of files named:
file000
file001
file002
file003
...
file1100
How can I match all files that have a number greater than 800 but less than 1000 ?
I am using linux bash
Thank you
Edit
Actually, my files are named like:
ab869.enc
cp936.enc
g122345.enc
x2022.enc
abc8859-14.enc
aax5601.enc
cp936-1.enc
so the first solution dont match the correct files :(
How can I match files that have number between 800-999 ?
From cmd on windows, you can stype "start filename" and an action will be taken based on the type of the file. EXEs will launch, JPEGs will have an associated file viewer opened, etc..
Is there a way to do this on Linux / Ubuntu?
Hello,
I want to run a program in linux without the X borders. It's a c++ program that uses a graphical library called GRX and when it is launched it runs inside a window.
Is there any way to "force" an app not to run in windowed mode? An exec, comand or something?
Cheers
I don't like this ugly FileChooser layout in Linux.
This layout is used by any other program and is MUCH more beautiful.
Is this layout available in Java? If so, how?
I need to convert an integer to it's ASCII representation from within the Linux Kernel. How can I do this? I can't find any built-in conversion methods. Are there any already in the kernel or do I need to add my own?
I need a script to identify the files opened a particular process on linux
To identify fd :
>cd /proc/<PID>/fd; ls |wc –l
I expect to see a list of numbers which is the list of files descriptors' number using in the process. Please show me how to see all the files using in that process.
Thanks.
When it comes to TTS (text-to-speech) libraries in Linux, what choices do developers have?
What libraries ship with the majority of distros?
Are there minimal libraries? What functionality does each library offer?
I'm approaching this primarily from a C++ point of view, although Python would suit me too.
hey guys:
it's simple i had this linux pc which i connect remote and i have this application that i run there and i want to debug it, but i just don't know how.
It's the simpler c++ app on the world, load some libraries, do some calculus, print some output and return,
It's just that, i just haven't any clue.
So any help would be appreciated. Thxs anyway
I am writing installation script for my program, which is supposed to run on Linux/Unix OS. What is the default directory for the following files:
Executable files (programs). Program should be executed by typing its name from the command line.
Shared libraries.
Third-party shared libraries (the program is not open source, so I need to redistribute third-party libraries).
Read-only program configuration files for all users.
Configuration data available for read/write access for all users.
I have a file in a folder like this:
installer-x86_64-XXX.XX-diagnostic.run
The XXX.XX is a version number and I need the version number only. How to do it in linux?
I have this code:
#!/bin/bash
current_ver=$(find /mnt/builds/current -name '*.run'|awk -F/ '{print $NF}')
So this gives me just the name of the file correctly (minus the location, which I dont want).
But how do I only get the XXX.XX version number into a variable such as $version
Are there any eclipse plugin available to auto generate sequence diagram for C++ code running in the linux environment? Please let me know the details. Thanks.
Just something I'd like to play with, I would like to create a "virtual" file/directory in the File System of Linux or Mac OS X (Not sure if I can share the same code - does POSIX help?), for example /foo and then perform custom code when something is read or written to it.
Similar how /dev/null allows for stuff like
echo "Hello!" > /dev/null
I don't care if it's in /dev, /proc or anywhere else, as said it's mainly something to play with...
For Remote Desktop Sessions in Linux, I want to know if there something available equivalent for what Team Viewer does for windows?
The main advantage I find of Team viewer is that it can bypass firewalls, needs no NAT configurations or port forwarding rules to be setup in the router.
I'm a Linux user looking to write a program which will pick up the phone, dial a number, play a recording and record what the person on the other end of the line says and save it to an audio file. I will want to use the modem that came with my computer if possible. What should I use to write this program?
Hi,
I am aware that this is not a direct 'development' question but I need that info to test a development project, so I think someone could've hit similar problem.
I will test a software that runs a TCP server and according to sent commands replies some answers. I will test the software and do not want to write code if it doesn't work well. So I want to send those commands and test drive the server software.
How can I achieve this with a Linux box?
I have a removable device setup so it autoruns when plugged into a Windows machine and pops up a message giving the owner's information, so it can be returned if lost. Is there a way to do this in Linux as well? It doesn't need to be complex, it can be an option in a right-click menu, or a splashscreen, or anything.
Given a PDF, how can one get the layout mode of a PDF (or relative width/height) using a PHP lib or linux command line tool?
Using http://www.tecnick.com/public/code/cp%5Fdpage.php?aiocp%5Fdp=tcpdf which can set this variable on new PDFs, but for existing pdfs from adobe.
Thought of converting pdfs to ps, or using gs in some other way - like converting it to an image first, and getting the width and height of that. Is this the best way?
Hi, i need to get all the HTML TEXT from a url "http://localhost/index.html" to a String variable on C
I know that if i put on telnet - telnet www.google.com 80 Get webpage.... it returns all the html.
How i can do it? im on linux enviroment? with C (NOT C++).
BTW im .net programmer :/
I generally have ignored using macros while writing in C but I think I know fundamentals about them. While i was reading the source code of list in linux kernel, i saw something like that:
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
(You can access the remaining part of the code from here.)
I didn't understand the function of ampersands(I don't think they are the address of operands here) in LIST_HEAD_INIT and so the use of LIST_HEAD_INIT in the code. I'd appreciate if someone can enlighten me.
Hello, i am new in programming under linux and trying to get working this code:
http://scaryreasoner.wordpress.com/2007/11/17/using-ld_preload-libraries-and-glibc-backtrace-function-for-debugging/
but getting error: "ERROR: ld.so: object 'libwrap_ioctl.so' from LD_PRELOAD cannot be preloaded: ignored."
what can cause it?
system - Archlinux, kernel 2.6.32
thank you for answers
upd1:
"Check with ldd libwrap_ioctl.so if some dependency of this library is missing."
checked. no, i have all needed libraries