Loops

This is a discussion on Loops within the C Programming forums, part of the General Programming Boards category; Hey there. I need to write a small C program that loops every minute. I want to run a PHP ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    25

    Loops

    Hey there. I need to write a small C program that loops every minute. I want to run a PHP script in Linux every 1 minute and be able to kill the program by pressing CTRL + C or something. I don't want to do a cronjob and I'm not really sure how to do this in C. I am vary new to C Thanks.
    Thanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    So which part are you having trouble with?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    25
    Well, I don't know what I need to incluse. I don't know how to start a loop or how to execute a PHP scrpt. I think the execution is something like exec(/file/to/run.pohp);
    Thanks

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loops Trouble
    By rlframpton in forum C Programming
    Replies: 2
    Last Post: 04-17-2009, 02:08 AM
  2. Too many loops D:
    By F5 Tornado in forum C++ Programming
    Replies: 6
    Last Post: 12-03-2007, 01:18 AM
  3. recoursion or loops?
    By Mecnels in forum C++ Programming
    Replies: 2
    Last Post: 01-14-2002, 12:09 PM
  4. help with arrays and loops
    By jdiazj1 in forum C Programming
    Replies: 4
    Last Post: 11-24-2001, 04:28 PM
  5. for loops - newbie q's
    By Narciss in forum C Programming
    Replies: 8
    Last Post: 09-26-2001, 03:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21