0
votes
3answers
135 views

How to view the list of c library functions?

I'm a newbie in Linux programming. I found that the way to view the list of system calls in Linux via command-line is: man syscalls But now I want to view the list of c library functions, how can I ...
0
votes
1answer
44 views

Controlling a loop and saving the output for each event

How can I control a loop and read live feed from a usb port and save each of the output when the usb is inserted or removed. I know the code below can be improved, please assist. #!/bin/bash ...
11
votes
1answer
438 views

Bash comparison and expression operators

I'm new to bash programming. I've read two good, long guides, but they made a mess in my head about operators and keywords. Which are more commonly and widely used? I don't know when to use which ...
1
vote
2answers
1k views

Cannot compile java code [Unicode Byte Order Mark 65279]

I wrote a simple Java program with the gedit text editor. public class Example{ public static void main (String args []) { System.out.println("hi yaar"); } } When I tried to ...
2
votes
1answer
200 views

How can I test if a variable matches another value and move to another function?

I am writing a script where I store a predetermined line of text into a string (we will call abc). I am storing the results from grep -iqs $USER file (we will call def) into another string. How can ...
0
votes
2answers
121 views

Is there any CLI utility that can convert program written in C to Java? [closed]

Is there any ubuntu program that converts the program written in C to Java. I know there's an utility that can convert awk script to perl script(a2p).
0
votes
1answer
5k views

Change home directory for gnuplot

Is there a way to change the gnuplot home directory permanently to a home/user/gnuplot directory without typing cd home/user/gnuplot after every gnuplot start?
0
votes
1answer
285 views

Error executing a command in Ubuntu

I am a newbie to Ubuntu. When I execute a command in a terminal I get an error. The command is: prompt>./h_affine.ln -haraff -i img1.ppm -o img1.haraff -thres 1000 The error is: ...
1
vote
1answer
4k views

How to get screen size through python curses

I'm writing a terminal program and need to get the size of the TTY I'm using. The Internet seems to suggest this can be done with curses, but I can't seem to find out how in python. I'm trying to ...
3
votes
3answers
7k views

Fast way to create gui for bash app

I want to build a simple GUI for an app that use bash so for example clicking on a button would execute some bash commands and so one. There's a GUI creator also simple, i need only buttons and ...
4
votes
3answers
1k views

How to shutdown/restart/suspend … without authentication or confirmation?

I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs. As when clicking the shutdown button, why it is not asking me for ...
8
votes
3answers
73k views

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
7
votes
1answer
2k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
2
votes
1answer
433 views

Watch syntax help

In my Systems Programming class, there are weekly programming experiments, and I'm having trouble with the current one. The objective is to write a C program that slowly writes a string of text to a ...
4
votes
2answers
1k views

Print terminal output in gedit automatically?

the command time ./myprog displays the time it took to run myprog on the screen. Now i would like to write this information to a text file. How?
24
votes
7answers
6k views

Multiple terminal windows

I develop code. I use terminal alot. I use many terminal windows alot. I hate how tabs look. Any useful applications that allow for multiple terminal use, and streamline my development. allow me to ...