ubuntu

Execute commands inside another process?

I want to be able to start a process and send input to it immediately. Take Bash as an example. The following code will enter another Bash process and then print "Hello World!" on the screen after I have terminated the process with "exit" bash echo "Hello World!" Is there a way to enter bash and then print "Hello World!" INSIDE that...

What's the Cygwin/Red Hat equivalent to Debian's manpages-dev, manpages-posix-dev?

I'm using Cygwin, and just discovered to my dismay that the package naming scheme is derived from Red Hat. I need the development man pages, called manpages-dev and manpages-posix-dev on Debian-based distros, and can't locate the Cygwin/RH equivalents. What are they? If they're not available, what's the canonical documentation to use in...

execute command within command ?

i want to ask if i can execute command within command ...or use the output of the previous command as the input of the followed command : command x then command y in command y i want use output of command x ...

Expect works great interactively but not from file

It works great when I use expect interactively like this: root@vagrantup:/home/vagrant> expect -i expect1.1> spawn screen -x spawn screen -x 3195 expect1.2> send "ls\n" expect1.3> exit But the same commands used in a file: spawn screen -x send "ls\n" exit Only works sometimes, eg. 1/10 time every time I execute the file. It's reall...

ffmpeg run from command line executes, from mod_fcgi truncates after completion

The ffmpeg from command line generates preview files and two separate two-pass conversion that when run from a shell script, execute successfully. Running the commands via php's exec(/usr/bin/ffmpeg) or through exec(name_of_shell_script) generates preview files successfully. THe strange behavior is that the movies will generate, then ...

How to install Sun JDK on Ubuntu 10.10 "Maverick meerkat"?

I've tried to add Canonial Partner repository, but still can't find sun-java6-jdk package. Does anybody know the right way to install Oracle Sun JDK instead of OpenJDK on Ubuntu 10.10 "Maverick meerkat"? ...

error: expected unqualified-id before ‘public’

I have read a few posts but cannot figure out what is wrong.My Code is a s follows #include <iostream> using namespace std; /* compiles with command line gcc xlibtest2.c -lX11 -lm -L/usr/X11R6/lib */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <X11/Xatom.h> #include <stdio.h> #include <mat...

Is there any uml tools on Ubuntu ?

Is there any uml tools(as Rose) on ubuntu ? thanks ...

Simple OpenGL code always causes a segmentation fault (C++ on Ubuntu, virtual machine)

I just started trying to use OpenGL in C++ for a class(I have previously used it in Java a fair amount). And I started off trying to write something substantial, I couldn't get that to stop Seg faulting so I wrote this piddly little piece of code which is nearly a line for line copy from an example in the first chapter of the red book. ...

CUDA without CUDA enabled gpu

I want to setup a CUDA emulator on my ubunbu 10.04, since I don't have the hardware. Can someone provides some valuable instructions. I think Nvidia does provide an emulator, how can i set it up. so far I don't care about performance, if it's slow. Thanks. ...

mod_mono question: Could not resolve the name 'ConfigurationManager'

Hello, I'm running mod_mono 2.4.4 on Ubuntu and I'm finding that I've had to go through my VB files and add "imports System.Configuration" to all of them to resolve the name error. This was not necessary in mod_aspdotnet on the Windows side. I have, however, run into one error of which I can't find the source: System.Web.Co...

magento connect manager blank page

Hello, I just installed Magento 1.4.1.1 on my Ubuntu Apache server and everything is working just fine aside from one thing: The Magento Connect Manager simply brings up a blank page. In Firebug it is just <html><body></body></html>. I read that it might be permissions but I gave 777 permissions to the Magento directory and a...

git: hash autocomplete

Is there any chance to configure git to autocomplete the hashes when pressing TAB? Edit: Please note that this question is not about autocomplete, but about hash autocomplete. See my comment to VonC's answer. ...

How to change default output file of g++ in ubuntu ?

Trivially 'g++ sample.c' generates 'a,out' Can g++ be configured to output to a different default name for output file ? ...

What software was used to do these wireframes

Anyone knows a Linux (or crossplatform) software that you can use to design wireframes like the ones on this page - https://wiki.ubuntu.com/SoftwareCenter#Software%20list%20view . That fuzzy style is great. I only know a Mac program that easily allows you to do this but since in the above page is made by Linux users for Linux users ther...

Help with Make error

When I run make I get an error: root@vagrantup:~/npm-1285112852/scripts# ./install.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 568k 100 568k 0 0 267k 0 0:00:02 0:00:02 --:--:-- 466k node cli.js ca...

How can I take a look at the Unicode normalization algorithm in .Net/C# with Mono?

Dear all, how do I get to peek at the source code for any of the algorithms of .NET? In particular, I'd like to take a look at the unicode normalization algorithm... I'm using Mono in Ubuntu. ...

Ubuntu: exit sudo after a bash command?

I have Ubuntu 10.04. Certain operations in the Terminal application or operations require me to type sudo [whatever command] and my password. I have noticed the effects of sudo last for awhile; five minutes or so. How can I explicitly exit sudo and go back to being me at the command prompt? ...

How can I count all of the lines in all of the files in the current directory and child directories?

I'm trying to figure out how many lines of code have been written for an app. Code is in the current directory and child directories. I'm using ubuntu. ...

vsftpd problems/install

Hi, I have installed vsftpd and added users normally. However I get permission problems. Everything is on default and I have turned off anon uploads. I cannot change directory or I cannnot upload/create/change permissions or folders and files. Please help, been trying for ages. I am running on ubuntu 32 bit ...