Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Help needed

  1. #1
    New Coder
    Join Date
    Aug 2004
    Location
    Mumbai, India
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help needed

    Hi,
    I want to run a program depending on a boolean field in a table. Of course I can have the program always running which can check the field. But is there any other way I can do the same without the program being always running?

    The database is PostGreSql and the program is written in C. This will run on a Linux machine

    Thanks in advance,

    regards
    binu

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not very familiar with that database, but if it supports something like triggers then you could write a trigger on update of that table that checks the field and starts or stops the program if necessary.

    shmoove

  • #3
    New Coder
    Join Date
    Aug 2004
    Location
    Mumbai, India
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi shmoove,

    In fact, I am changing the field in a trigger and the program which I am calling is a heavy one to be called inside a trigger.

    regards
    binu


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •