Search:

Type: Posts; User: Valery Reznic

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    6,185

    If execl function succeeded then nothing will be...

    If execl function succeeded then nothing will be executed after statement


    execl("/bin/ls","ls","-l",0);


    Only if execl failed for any reason than
  2. Replies
    3
    Views
    2,646

    Not related to your question, but you still can...

    Not related to your question, but you still can be interested:

    - Usual Unix convention to print error messages to stderr, not stdout.
    -. When you print error it very helpful to include errno ...
  3. Replies
    3
    Views
    14,894

    It' depend. Some of the programs can be installed...

    It' depend. Some of the programs can be installed in any directory, some - only in the one specified during configure
  4. Replies
    5
    Views
    6,128

    I am use grep very intensive, but somehow never...

    I am use grep very intensive, but somehow never noted -w flag before.
    Cool.

    What never fail to astonish me, why so often used


    "cat file | grep ...


    Instead of plain
  5. Replies
    4
    Views
    1,224

    Firt specify -lY and then -lX: ...

    Firt specify -lY and then -lX:


    bill@micosoftsux:~$ gcc test_prog.c -Wall -m32 -O -g -lY -lX -o test_prog


    Or use shared libraries :)
  6. Replies
    9
    Views
    2,566

    You can try CryoPID. While it not works on all...

    You can try CryoPID. While it not works on all systems if it will works on yours it will aloow you to freeze and re-run your program.
  7. Replies
    9
    Views
    2,566

    Could you please tell why you need data/function...

    Could you please tell why you need data/function on specific address ?
  8. Replies
    11
    Views
    2,084

    If you put as shebang #!/bin/bash they should...

    If you put as shebang #!/bin/bash they should modify nothing, save may be installing bash.
    But same is hold for python, perl, ruby , awk - any interpreted language.
  9. Replies
    11
    Views
    2,084

    Why do you think bash is evil ? I like it.

    Why do you think bash is evil ? I like it.
  10. Replies
    11
    Views
    2,084

    man bash

    man bash
  11. Replies
    6
    Views
    7,037

    While reading man page is very useful thing to...

    While reading man page is very useful thing to do, there is also something else that make life a lot easy - compile you program with warnings at least with -Wall and make sure you fixed all warnings....
  12. Replies
    5
    Views
    1,243

    May be your program from time to time use...

    May be your program from time to time use system() function ?
  13. Did child need those or any other file...

    Did child need those or any other file descriptors from parents at all ?

    If not - and assuming your are using Linux (who use something else for servers anyway :)
    you can instead of fork use clone...
  14. Replies
    7
    Views
    1,956

    I still can't see how "rm -rf /" make sense. But...

    I still can't see how "rm -rf /" make sense.
    But the point is - kernel usually not held your hand. It provides services and
    left to user space to make sense of it.

    And I think usually it's a...
  15. Replies
    7
    Views
    1,956

    Neither kernel nor user space never prevent you...

    Neither kernel nor user space never prevent you from shouting yourself.
    rm -rf / is sure worse then your case, but still kernel doesn't prevent it.

    And even if it did - I don't think you was...
  16. Replies
    7
    Views
    1,956

    It's looks like you build your dynamic linker as...

    It's looks like you build your dynamic linker as program, not as shared object.
    When kernel loaded shared objects it's free to map it at any address. And responsible to avoiding conflicts like...
  17. Use "$@" #!/bin/sh my_executable "$@"

    Use "$@"


    #!/bin/sh

    my_executable "$@"
  18. Or build shared library as 64-bit ?

    Or build shared library as 64-bit ?
  19. I think you have two options to achieve...

    I think you have two options to achieve unbuffered outout from unchanged dmaosd binary:
    1) Set unbuffered stdout as was suggested above in your executable and then execve dmaosd.
    2) Run dmaosd with...
  20. umask setting affected permission bits of the...

    umask setting affected permission bits of the created files.
    You can either:
    umask(0);
    somewhere near start of your program,
    or, after file was created
    fchmod(filedes, permissions)
  21. Replies
    6
    Views
    3,182

    I forget that OS otherthen Unix exist.

    I forget that OS otherthen Unix exist.
  22. Replies
    6
    Views
    3,182

    I don't think I am follow. Editors works under...

    I don't think I am follow. Editors works under each operation system and termios is quite standard
    (at least among Unixes). So what is Linux specific here ?
  23. Replies
    6
    Views
    3,182

    Sure, it is a way - any text editor do it. See...

    Sure, it is a way - any text editor do it. See 'man termios'. Pay attentiom to the part 'Canonical and non-canonical mode'
  24. Replies
    8
    Views
    2,267

    It's not answer your question, but anyway......

    It's not answer your question, but anyway...
    Instead of adding timer's code to your program you can run
    time <your_program> [<args...>]
  25. Replies
    4
    Views
    2,542

    What wrong with using du ? You can or use...

    What wrong with using du ?
    You can or use executable as is or use it's code as example
Results 1 to 25 of 32
Page 1 of 2 1 2