Find the answer to your Linux question:

Search:

Type: Posts; User: Cabhan; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Thread: fork/execvp

    by Cabhan
    Replies
    2
    Views
    912

    From the man page of execve: DESCRIPTION ...

    From the man page of execve:

    DESCRIPTION
    The exec family of functions shall replace the current process image with a new process image. The new image shall be constructed from a regular,...
  2. Replies
    2
    Views
    922

    Until I hear whether or not this is homework, I'm...

    Until I hear whether or not this is homework, I'm going to withhold too much detail, but my main question is: why don't you want to use grep -v?
  3. Replies
    3
    Views
    1,036

    Depending on language, there are a few ways of...

    Depending on language, there are a few ways of doing this.

    One way that pops into my mind for C, at least, is to use cscope. This lets you find every place in your code that calls a function: you...
  4. Replies
    5
    Views
    1,567

    I usually have two books going at once: one on my...

    I usually have two books going at once: one on my Kindle, which is my main book, and one on my phone, which is re-reading a book I've already read when I don't have my Kindle right me.

    On my...
  5. You can use the "basename" command to get the...

    You can use the "basename" command to get the part of a filename without its extension:

    [alex@niamh ~]$ basename myfile.mp3 .mp3
    myfile

    You should be able to whip up a script of original files...
  6. Replies
    1
    Views
    738

    What doesn't work? Does each individual...

    What doesn't work?

    Does each individual command work when you run it from the commandline? Do the jobs not run at the correct time? Does your crond.log have anything in it?
  7. You might be able to exclude certain extensions,...

    You might be able to exclude certain extensions, if you know that they are inefficient. For example:

    find . -not -iname '*.jpg' -a -not -iname '*.bmp' -exec grep -l "phrase" {} \;
  8. Replies
    3
    Views
    748

    janhar: that's not quite the right way to do it. ...

    janhar: that's not quite the right way to do it. Redirection is done by using a special HTTP header, with a 3xx status code (for this case, 302). You can read more here:...
  9. Replies
    9
    Views
    1,570

    In my opinion, sometimes those partition schemes...

    In my opinion, sometimes those partition schemes are fear-mongering, and other times, they're legitimate.

    I personally just use two partitions: one for /, and one for swap. This is the bare...
  10. I'm going to go one step further than Cancerous...

    I'm going to go one step further than Cancerous and close this thread. If you have a specific question about some difficulty, we're happy to help you figure it out, but we won't do your homework for...
  11. Replies
    2
    Views
    837

    This sounds a lot like a homework question, which...

    This sounds a lot like a homework question, which are not allowed on this forum. If you have specific questions, feel free to ask them, but we won't do your homework for you.
  12. Replies
    10
    Views
    6,574

    It sounds like you're looking for commands to use...

    It sounds like you're looking for commands to use within less. You can press 'h' while running to less to see some help, or you can run "man less" from the commandline. Note that many of less's...
  13. Replies
    8
    Views
    1,323

    So. Let's walk through what happens. You call...

    So. Let's walk through what happens. You call valid(). That has a string "hello", and returns its memory address. Your main function prints out whatever is at that memory address.

    If the...
  14. Replies
    3
    Views
    1,506

    I'm confused. Why do you think that: ...

    I'm confused. Why do you think that:

    Log().Get(logINFO) << "Hello";
    Log().Get(logINFO) << "Hello again";

    reuses the same stream? As far as I can tell, it should create different streams.
  15. 95% here too. I think I got the dangling...

    95% here too. I think I got the dangling modifier one wrong, but of course, as Peter D says, I don't think I actually learned about those in school anyway.
  16. MVC stands for Model-View-Controller. It's...

    MVC stands for Model-View-Controller. It's basically a framework philosophy that has you make clear separations between the different parts of your site.

    In PHP (which is not MVC), you mix your...
  17. jQuery is amazing. Use it. Everyone else does. ...

    jQuery is amazing. Use it. Everyone else does. Seriously. Every company I have worked at has used jQuery for its frontend JS. Vanilla JavaScript is difficult to use for DOM manipulation, is hard...
  18. Replies
    22
    Views
    3,236

    So, in an ideal world, here's how package...

    So, in an ideal world, here's how package management works:

    You want to install a package. So you run a command "packagemanager install package". The package manager looks up everything that...
  19. Replies
    2
    Views
    766

    [SOLVED] What you are doing is sometimes called an...

    What you are doing is sometimes called an indirect reference. You have a variable that contains the name of another variable that you want to use. So your variable is an indirect reference to the...
  20. Replies
    5
    Views
    1,771

    If you open up the terminal manually, you can use...

    If you open up the terminal manually, you can use the command:

    which gnome-terminal

    This will tell you the full path of the gnome-terminal command. Make sure that's the one that you're using....
  21. Ah, okay. So, if we look at the two core...

    Ah, okay.

    So, if we look at the two core dumps, we're seeing different error messages. The second one is a standard segfault. The first one is actually stack-smashing, and this means something...
  22. There are a few things here. First of all, use...

    There are a few things here.

    First of all, use just "-g", not "-gstabs". The former will use gdb-specific debugging symbols, which may let gdb provide you with more information than the standard....
  23. Replies
    1
    Views
    736

    Suspending your machine will probably pause it. ...

    Suspending your machine will probably pause it.

    Since it's a VM, depending on how you access it, you might be able to press Ctrl-Z to suspend the process. When you get home, if you can access...
  24. I assume that when you talk about dev versions...

    I assume that when you talk about dev versions vs. non-dev versions, you're talking about in the sense of a Debian package?

    If we look at libpng12 and libpng12-dev, the first is simply the .so...
  25. Each time that I click on "Edit stave", I get a...

    Each time that I click on "Edit stave", I get a segfault :(. If you PM me your e-mail address, I can send you a core dump.

    It also seems a bit weird that I can input notes overlapping each other....
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4