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
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?
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 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?
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.
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.
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...
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.
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
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
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.
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.
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?
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 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.
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?
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?
I am setting up a new SVN server on Ubuntu Linux. Where is a good place (best practice) to put the repositories? Should I create a new user? The server will be accessed via http:// so no need to create user accounts etc (as was the case for svn://).
Many thanks in advance
Can someone point me to a decent RPC tutorial for (or books) linux, like in this post. I tried looking around myself, I've only found tutorials that are really old.
Thanks
Hi,
is there a free (command line) tool for linux which with I can get all files from a TFS-Repository (no Check in / Check out required - only get actual version)?
greets
CFI
I need a way to get user home directory in C++ program running on Linux. If the same code works on Unix, it would be nice. I don't want to use HOME environment value.
AFAIK, root home directory is /root. Is it OK to create some files/folders in this directory, in the case my program is running by root user?