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

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.
3
votes
1answer
233 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 ...
1
vote
2answers
75 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
85 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
369 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 ...
1
vote
1answer
681 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 ...
10
votes
2answers
3k 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
54 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
47 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 ...
0
votes
0answers
31 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
63 views
-1
votes
1answer
92 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
39 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 ...
2
votes
3answers
175 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
50 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 ...

15 30 50 per page