Skip to content
Advertisement

How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Is there a benefit to defining a class inside another class in Python?

What I’m talking about here are nested classes. Essentially, I have two classes that I’m modeling. A DownloadManager class and a DownloadThread class. The obvious OOP concept here is composition. However, composition doesn’t necessarily mean nesting, right? I have code that looks something like this: But now I’m wondering if there’s a situation where nesting would be better. Something like:

Embed data in a C++ program

I’ve got a C++ program that uses SQLite. I want to store the SQL queries in a separate file — a plain-text file, not a source code file — but embed that file in the executable file like a resource. (This has to run on Linux, so I can’t store it as an actual resource as far as I know,

Execute program from within a C program

How should I run another program from within my C program? I need to be able to write data into STDIN of the launched program (and maybe read from it’s STDOUT) I am not sure if this is a standard C function. I need the solution that should work under Linux. Answer You want to use popen. It gives you

Compile a PHP script in Linux

I know PHP scripts don’t actually compile until they are run. However, say I want to create a small simple program and compile it to a binary without requiring the PHP binary. How could I do this? I’ve seen a few IDE’s out there that would do this, but either they are all for windows or the Linux versions don’t

How do I Send Email from the Command Line?

I would like to quickly send email from the command line. I realize there are probably a number of different ways to do this. I’m looking for a simple way to do this from a linux terminal (likely a bash shell but anything should do) and an alternative way to do this on Windows. I want to be able to

Building a custom Linux Live CD

Can anyone point me to a good tutorial on creating a bootable Linux CD from scratch? I need help with a fairly specialized problem: my firm sells an expansion card that requires custom firmware. Currently we use an extremely old live CD image of RH7.2 that we update with current firmware. Manufacturing puts the cards in a machine, boots off

How do you set up an OpenID provider (server) in Ubuntu?

I want to log onto Stack Overflow using OpenID, but I thought I’d set up my own OpenID provider, just because it’s harder 🙂 How do you do this in Ubuntu? Edit: Replacing ‘server’ with the correct term OpenID provider (Identity provider would also be correct according to wikipedia). Answer I personnally used phpMyID just for StackOverflow. It’s a simple

Combining values from different files into one CSV file

I have a couple of files containing a value in each line. EDIT : I figured out the answer to this question while in the midst of writing the post and didn’t realize I had posted it by mistake in its incomplete state. I was trying to do: and was getting a weird output. I later realized that was happening

Advertisement