Programming consists of writing computer instructions in different languages. This tag should mark questions pertaining to shell scripting on Unix-like platforms; regular programming questions belong on Stack Overflow

learn more… | top users | synonyms

1
vote
0answers
7 views

How to have Kate spell check ignore run together words?

I use Kate editor for scientific programming (Fortran, Python, matlab) and would like to leave spell check on, but have it automatically ignore words that have been run together to create a variable ...
0
votes
1answer
35 views

Windowing system strictly for code editing? [closed]

I'm a usability obsessive and I can't help dreaming about how nice it would be to have a windowing system configured for nothing but editing code... mostly it would be ultra minimalist, with just ...
2
votes
1answer
2k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
1answer
31 views

How kernel allows a process to receive network data that do not belong to it? [closed]

Each process is assigned with port number when using network resource. A process can only send and receive network data from its assigned port number. How kernel allows security programs like IDS, ...
4
votes
2answers
206 views

Concatenate all commentary about source files in a directory tree

I am working on a multitude of projects involving codes in Fortran. They are in a directory tree involving 10 to 20 folders, each of the codes is in a 'src' folder. What I am looking for is a simple ...
-1
votes
0answers
15 views

Use fts(3) functions to rename files and directories. only first level gets changed [migrated]

it's just a simple prog to replace spaces with underscores. i found a bash script that will do it but it's slow. from what i understand i want a depth-first search and i want my remove_space function ...
1
vote
1answer
33 views

Adding timestamp before each STDOUT line inside perlscript

In a perl script, I am capturing all the STDOUT and STDERR using the below code: open STDOUT, '>>', "$log_file" or die "Can't redirect STDOUT: $!"; open STDERR, ">&STDOUT" or die "Can't ...
3
votes
1answer
291 views

Is there a Linux for an MSM7227 tablet with USB keyboard and touchscreen stylus drivers?

I have a ZTE V9C 7" tablet with 800MHz MSM7227 processor, Snapdragon family (ARM architecture?), Android 2.3, and I want to have a (very lightweight) Linux running on it (I know Android uses a Linux ...
-5
votes
1answer
235 views

Linux: create list of text with multiple operators [closed]

I want to make a list like this: 7785237_770x770_de3b540dc13ed50023d17854513b40aa07e50a6a 732308_770x770_ec5c344c0114011a5306b31142ff9b001813f6d6 ...
2
votes
1answer
27 views

Can you use LXC through C?

I want to use LXC to 'container' plugins my application is loading. Am I able to do this through C? I have been Googling a lot about it, but there don't seem to be any headers, only scripts that can ...
1
vote
2answers
70 views

What was the old linux game for programmers, simulating a life on a grid of pixels? [closed]

I remember about 10 years ago in the official Linux repository there was a program, simulating a life of creatures on a grid of pixels (each occupying one pixel). The point of the "game" was in ...
2
votes
2answers
73 views

What graphical programming language does OpenBox use primarily?

Is there a specific graphical language that OpenBox uses for most of it's apps, or one that it likes to run with? For example how KDE uses primarily QT for it's apps, and also includes a large ...
0
votes
0answers
41 views

What Ubiquity files should I change or interface with to make a change to Ubiquity?

There's a difference between the GTK and Qt/KDE versions of the Ubiquity installer. The GTK version doesn't take you to a manual disk partitioner if you choose the dual boot radio button. The Qt ...
6
votes
5answers
1k views

How does “top” command show live results?

How can I write a shell script that shows the results in real time? Something like the top command that updates the results after some fixed intervals of time.
1
vote
2answers
121 views

Is the Unix Programmers Manual relevant for Linux?

I've been looking for an all around Linux Programmers manual but there isn't one... So that leads me to ask if the Unix Programmers Manual is relevant for Linux? The manual is here: ...
2
votes
1answer
296 views

How do I use bar in bash without I/O?

I really like the look of the output of bar But that script is only used for Input/Output operations. How can I use it as a replacement for sleep? sleep 10
4
votes
4answers
941 views

How do I write a progressbar in bash?

In a bash script sometimes you need the user to wait some seconds for a background process to finish. I usually use for example: sleep 10 How can I add a kind of progressbar to the script, so the ...
10
votes
2answers
4k views

Binary compatibility between Mac OS X and Linux

Brace yourselves, this question will likely appear naive and/or foolish, seeing as I am relatively new to the inner workings of unix like systems, and programming in general. Ready? Ok! I will go ...
0
votes
3answers
70 views

how to run more than one program in a single script?

I have about 6 programs I want to run one after the other. They all are in different directories with their respective data. I would like help with a script that I can use to run each program in a ...
0
votes
1answer
68 views

how to plot multiple graphs in one plot?

I want a plotting script that will plot multiple graphs on the same plot where the values of my data have the same x coordinate. This will help me the differences of each variable in the plot. I tried ...
1
vote
0answers
55 views

Where does backtick and single quote come from when denoting commands e.g. `prog'? [duplicate]

When referring to commands in tutorials, man pages, and articles I see authors use the backtick and single quote in this way: `./configure' `make' I believe I have seen gcc denote points of failure ...
0
votes
1answer
93 views

Can we run objective c on UNIX operating system? [duplicate]

How can I run objective c on Unix systems?
-1
votes
1answer
151 views

Delimiters of program arguments?

What is the syntax to delimit the arguments of a C program. For example, if I type : ./myprogram 1 2 3 | grep result The | grep result will be interpreted as arguments (and passed as argv). So how ...
1
vote
1answer
61 views

Set auto completion for a new filetype

I have a file, which contains lines of function name, now I want to use them for code auto completion, and only for file names end with .XXX. How should I do it, is it possible to work with ctags or ...
3
votes
3answers
328 views

default wordsize in UNIX/Linux

I was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h It is located in /usr/include/i386-linux-gnu/bits/wordsize.h the file contains only one ...
-1
votes
2answers
64 views

Using .. and . to copy files from dirctories

I'm trying to copy a file from the home directory to the current directory( which is a subdirectory of a directory in home) using .. and . instead of path names or ~ This is what I tried, but it ...
2
votes
3answers
250 views

Keeping program GUI front-end and CLI functionality separate

In Linux a lot of programs have a CLI version and a GUI front-end. I read somewhere that this follows the linux philosophy and is good practice. Of course it's true from a developers perspective to ...
3
votes
2answers
161 views

What does the term static variable mean in unix speak?

From the section 2.7 of the book - The Linux programing Interface named Process memory layout : Data is defined as the static variables used by the program. What is the significance of the word ...
12
votes
1answer
261 views

What is AT&T’s Link Editor Command Language?

The man page for ld makes reference to AT&T’s Link Editor Command Language, however a Google search does not offer a satisfactory explanation as to what AT&T’s Link Editor Command Language is ...
0
votes
2answers
488 views

Best language to write linux services [closed]

I want to create a crawler that scans one single web page and sends me an email in case something is wrong on the page (the page holds some webservers' status - Up/Down). What would be the best ...
-2
votes
2answers
392 views

UI toolkit + programming language to develop linux applications [closed]

Suggest good GUI designer tool with programming language for linux based application. For a developer who knows winform and C#. Don't want to use mono on linux to run .net application on linux. I ...
1
vote
1answer
85 views

How do I keep 'indent' from moving curly braces to the next line?

I have several empty inline function definitions in C++ like so: class C { void foo(){} void bar(){} }; now if I run indent -st -i4 -nut test.cc in order to just fix the indentation I get ...
4
votes
4answers
2k views

Linux on a tegra tablet for programming

I would like to use a tablet for some mobile programming. It would be nice to read a pdf and immediately try the code on the same device. I've found various videos and tutorials how to get Ubuntu ...
2
votes
2answers
343 views

Extract name of file without extension in shell script [duplicate]

Possible Duplicate: Best way to remove file extension from a string? How to rename multiple files by removing the extension? I have a metric boatload of .txt files I'd like to load into a ...
7
votes
5answers
20k views

Best distro for programming [duplicate]

Possible Duplicate: Linux distribution geared towards developers I don't know if this question qualifies to be a question to be asked here. But can anyone tell me what's the best (linux) ...
0
votes
1answer
462 views

How do I install drjava in linux from terminal?

I've downloaded drjava-stable-20100816-r5366.jar file which is the drjava version for Linux. How do I install it on my machine? I'm running Ubuntu 11.10. I have OpenJDK Java 6 runtime and Sun Java 6 ...
11
votes
5answers
2k views

Is there a way for linux to pick up the phone?

I know that there is a way to make Linux dial out using a modem. Is there a way to program Linux (using a library/device) to pick up the modem (record phone calls) etc? see caller id?
5
votes
11answers
5k views

Which programming language is best to begin with as a total beginner? [closed]

Ok here is the deal after playing with Linux distros for best part of 4 years, I have a great urge learn some coding. However I'm a bit undecided as to which programming language to begin with. Word ...
10
votes
4answers
6k views

Use of O_DIRECT on Linux

If this question is too programmer oriented, let me know. I wonder if there are people familiar with the O_DIRECT flag for the open() system call on Linux 2.6? Linus disparages its use, however high ...
10
votes
2answers
662 views

Where is best place to find sources of standard linux command line tools?

Into: I like learning by reading sources. But it's tiring of searching them across internet splited on many many different project sites. I'd love to see central browsable repo with sources of many ...
5
votes
1answer
925 views

Usage of inb, inl, inw to access kernel space from user space

What are some user space examples of using inb, inl, and inw to access kernel space in Linux?
2
votes
3answers
394 views

Developing software on linux

What tools or IDEs do I need to start developing software on Linux in C++? Can I work using C#? What are necessary skills in order to know to develop software on Linux? I mean what is required in ...
0
votes
2answers
603 views

Best Distro For Artificial Intelligence Research? [closed]

Is there a definite best distro for AI research? I want to build a AI that can be used to help me manage all my emails intelligently.
2
votes
1answer
214 views

How to get transient highlighting to work from an elisp script?

I want an elisp script to highlight a region of text. Upon exit, the highlighted selection should disappear when a key is pressed. Everything I've tried results in the highlighting hanging on like the ...
0
votes
1answer
792 views

Free way to get financial data as Bloomberg terminal [closed]

I was wondering if there are some free ways (applications or programming) to get financial data (either live data, historical data or both), achieving similar function as Bloomberg terminal? Thanks ...
1
vote
3answers
400 views

Managed code programming languages in Linux

Is there a .NET-like managed code programming environment in Linux? I've heard of Mono, but I don't see it extensively used -- even now Python can be seen used in most open source projects. Edit: ...
2
votes
1answer
852 views

How synchronize two disks (or folders) using symbolic (or hard) links (like rsync)?

I'm searching a tool or a shell script or another program to synchronize two or more folders or disks. But it differs of rsync tool, because, I don't want to duplicate the missing file, but do a ...
1
vote
2answers
485 views

Linux user interface programming? (esp. for Python and Fortran)

What are my options for programming a GUI in Linux? I have several programs in Fortran and Python that I would like to create simple UI's for. I also plan on incorporating graphics in the form of ...
1
vote
1answer
431 views

Kdevelop project setup with symlinked files not seeing custom include paths

So I have a crazy project setup (well, it's only 1 file that needs this crazyness). First, I'll explain the setup. So I have a file on my dropbox. I want to include that file in a Kdevelop project, ...
13
votes
8answers
1k views

What are the best general purpose programming tools to complement Vim?

I've been using Vim as my text editor for a little while now and I feel like I'm taking the long way to do anything. I use ctags to tag my code base for navigation and I use grep (although ...