Search:

Type: Posts; User: elsheepo

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    3,967

    is there a way to execute shell scripts inside...

    is there a way to execute shell scripts inside your C program?
  2. Replies
    10
    Views
    3,967

    ? could you please explain?

    ? could you please explain?
  3. Replies
    10
    Views
    3,967

    okay, so here is the same program, only having it...

    okay, so here is the same program, only having it output all commands onto one script file.

    #include<stdio.h>
    #include<string.h>
    void strip_newline(char *str,int size)
    {
    int i;
    ...
  4. Replies
    10
    Views
    3,967

    Here's what's going on. I wrote this program, and...

    Here's what's going on. I wrote this program, and I would like it to write all the commands to one shell script, and execute each command in order, because the first command needs to finish before...
  5. Replies
    10
    Views
    3,967

    #!/bin/bash question

    I'm curious if anyone here has any idea how to write a 'shell script' that will open multiple shells and execute commands within each shell.
    And then if so, how to make your C program that...
  6. Replies
    5
    Views
    1,312

    beatzz@hax0r:~/documents/c/test$ man fopen No...

    beatzz@hax0r:~/documents/c/test$ man fopen
    No manual entry for fopen
    beatzz@hax0r:~/documents/c/test$
  7. Replies
    5
    Views
    1,312

    Of course this program is only to help further...

    Of course this program is only to help further the efforts of security on my own private, HOME network. :D
  8. Replies
    5
    Views
    1,312

    Bugs in new program cracKrocKs !?

    Here is what I have so far.

    #include<stdio.h>
    #include<string.h>
    void strip_newline(char *str,int size)
    {
    int i;
    for(i=0;i<size;++i){
    if(str[i]=='\n'){
    str[i]='\0';
  9. Fixed it all! Thanks a bunch! Your answer guided...

    Fixed it all! Thanks a bunch!
    Your answer guided me to the correct code!
  10. Okay, I fixed the pointer issues, but what did...

    Okay, I fixed the pointer issues, but what did you mean about striping the \n newlines? I don't have any \n newlines
  11. Strange problem in my new program, dealing with variables.

    Hey, so I've been writing this new program to help me run aircrack-ng a little faster. Here is what I have thus far.

    #include <stdio.h>
    int main()
    {
    char bssid[20];
    char essid[20];
    int...
  12. Replies
    18
    Views
    2,468

    indeed, I am a very basic programming thus far....

    indeed, I am a very basic programming thus far. But thanks for your help it really helps :)
  13. Replies
    18
    Views
    2,468

    I supose that this may be getting more into the...

    I supose that this may be getting more into the principles of programming, but what do you mean a function returns an object?
  14. Replies
    18
    Views
    2,468

    1. Dose that mean when declaring a function such...

    1. Dose that mean when declaring a function such as "main()" I should write it "int main()"?
    2. Is "free()" only used in conjunction with"malloc(sizeof())"?
    3. Can someone please explain these...
  15. Replies
    18
    Views
    2,468

    so is it a good idea to have return 0; in all...

    so is it a good idea to have
    return 0; in all functions?
  16. Replies
    18
    Views
    2,468

    okay, I got the program to work the way I wanted...

    okay, I got the program to work the way I wanted it to at least. I'm not sure if I fully understand pointers at the moment, but I supose with time I will. Thanks for the help guys
    #include...
  17. Replies
    18
    Views
    2,468

    I understand what anon is saying, just leave the...

    I understand what anon is saying, just leave the malloc out, and it would work fine, but I'm trying to use it just for the tutorials sake.
    #include <stdio.h>
    #include <stdlib.h>

    main()
    {
    int...
  18. Replies
    18
    Views
    2,468

    so how dose one appropriately use free(); ?

    so how dose one appropriately use free(); ?
  19. Replies
    18
    Views
    2,468

    free(ptr); question?

    Hello, once again :) today is devoted to the pointers lesson! Now I have compiled everything successfully on the lesson so far except for the function
    free(ptr);
    here is what I have so far that...
  20. Thread: fixed :)

    by elsheepo
    Replies
    4
    Views
    1,354

    Do you mean I should have return 0; in each...

    Do you mean I should have
    return 0; in each function as good practice?
  21. Thread: fixed :)

    by elsheepo
    Replies
    4
    Views
    1,354

    made it a little more effiecent #include...

    made it a little more effiecent
    #include <stdio.h>
    main()
    {
    int a;
    printf("1.FOR loop\n2.WHILE loop\n3.DO-WHILE loop\nSelect a loop to preform:");
    scanf("%d",&a);
    switch(a){
    case 1:
    ...
  22. Thread: fixed :)

    by elsheepo
    Replies
    4
    Views
    1,354

    lol that was supposed to be the reply to what I...

    lol that was supposed to be the reply to what I thought was the thread I had posted this morning which was actually just the preview of the thread I was intending on posting.
  23. Thread: fixed :)

    by elsheepo
    Replies
    4
    Views
    1,354

    fixed :)

    Well after a few hours with it this morning I have fixed all the bugs and answered my own questions, here is the corrected code if anyone wants to see it.
    #include <stdio.h>
    main()
    {
    int a;
    ...
  24. Those are the first things on my "to do" list...

    Those are the first things on my "to do" list once i learn how to program!!! :D
  25. lol indeed. I figured I should have taken that...

    lol indeed. I figured I should have taken that out when I edited it, I don't meant to offend any Windows coders :x much <3 for the ease and....well, I got much <3 for the ease of windows ;)
Results 1 to 25 of 38
Page 1 of 2 1 2